How to Setup GlusterFS Storage on CentOS 7 / RHEL 7

7 Responses

  1. Solomon says:

    good article and thanks for sharing!

    There are a few typos that I would like to highlight (–permanent) (double –)

    sudo tee gfs.fw <<-'EOF'
    sudo systemctl enable firewalld
    sudo systemctl start firewalld
    sudo firewall-cmd –permanent –zone=public –add-port=24007-24008/tcp
    sudo firewall-cmd –permanent –zone=public –add-port=24009/tcp
    sudo firewall-cmd –permanent –zone=public –add-service=nfs –add-service=samba –add-service=samba-client
    sudo firewall-cmd –permanent –zone=public –add-port=111/tcp –add-port=139/tcp –add-port=445/tcp –add-port=965/tcp –add-port=2049/tcp –add-port=38465-38469/tcp –add-port=631/tcp –add-port=111/udp –add-port=963/udp –add-port=49152-49251/tcp
    sudo systemctl reload firewalld
    sudo systemctl status firewalld

    and pls add a note for nfs …

    sudo systemctl stop nfs-lock.service
    sudo systemctl stop
    sudo systemctl disable
    sudo systemctl start rpcbind.service

    — to fix user not allowed issues by doing the above and also check /etc/exports and /etc/allow

  2. Satheesaran says:

    Very well written. good reference material.
    I have 2 suggestions :
    1. glusterfs-server package provides firewalld service file which opens up the required ports. You can use this service file, instead of opening ports one by one.
    # firewall-cmd –zone=public –add-service=glusterfs
    # firewall-cmd –zone=public –add-service=glusterfs –permanent

    2. Striped volumes are getting deprecated soon with glusterfs-3.9

  3. Jimbob says:

    Good reference material, but any reasons why the bricks getting created under Virtual volumes.. (i.e: lvcreate -V ) Is there any advantages ? Thanks !

  4. Krishna Verma says:

    Thanks for sharing the detail. I need your suggestion. I am planning to setup glusterfs in our organization to replace ftp and we will use it to distribute large number files over the wan at different location. will it the right approach and will method we should use to setup glusterfs out of 4 you defined above ? Please reply

    • Pradeep Kumar says:

      Hi Krishna,

      It depends on your requirements whether you want use glusterfs volume as distributed or replicated.

Leave a Reply

Your email address will not be published. Required fields are marked *