Gluster 3.2: Installing GlusterFS on Debian-based Distributions

From GlusterDocumentation

<<Installing GlusterFS on RPM Distributions | Table of Contents | Installing GlusterFS from Source>>

To install GlusterFS on Debian-based distributions, such as Ubuntu and Debian.


  1. Install OpenSSH Server on each node (server) using the following command:

    $ sudo apt-get install openssh-server wget nfs-common

  2. Download the latest GlusterFS .deb file and checksum to each server in your cluster.

    You can download the software http://www.gluster.org/download/ .

  3. For each .deb file, get the checksum (using the following command) and compare it against the checksum for that file in the md5sum file.

    $ md5sum GlusterFS_DEB_file.deb

  4. Uninstall GlusterFS v3.0 (or an earlier version) from the server using the following command:

    $ sudo dpkg -r glusterfs

    (Optional) Run $ sudo dpkg -purge glusterfs to purge the configuration files.

  5. Install GlusterFS on all servers using the following command:

    $ sudo dpkg -i GlusterFS_DEB_file

    For example:

    $ sudo dpkg -i glusterfs-3.2.0.deb

  6. Ensure that TCP ports 111, 24007,24008, 24009-(24009 + number of bricks across all volumes) are open on all Gluster servers. If you will be using NFS, open additional ports 38465 to 38467.

    You can use the following chains with iptables:

    $ iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 24007:24047 -j ACCEPT
    $ iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
    $ iptables -A INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
    $ iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 38465:38467 -j ACCEPT
    $ service iptables save
    $ service iptables restart

    Note: You need one open port, starting at 24009 for each brick. This example opens enough ports for 20 storage servers and three bricks.


<<Installing GlusterFS on RPM Distributions | Table of Contents | Installing GlusterFS from Source>>

 

Copyright © Red Hat, Inc. All Rights Reserved.