How to Setup GlusterFS Storage on CentOS 7 / RHEL 7

Pradeep Kumar

I am a huge fan of open source and love to share How To's tutorials on Linux, Cloud and DevOps. I have been working as Linux Consultant, Cloud & DevOps Engineer since 2010

You may also like...

5 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
    EOF

    and pls add a note for nfs …

    sudo systemctl stop nfs-lock.service
    sudo systemctl stop nfs.target
    sudo systemctl disable nfs.target
    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
    ‘http://www.gluster.org/pipermail/gluster-devel/2016-August/050377.html’

  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 !

Leave a Reply

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