Comments on High-Availability Storage with GlusterFS on Ubuntu 18.04 LTS

Glusterfs is a scalable network filesystem with capabilities of scaling to several petabytes and handling thousands of clients. In this tutorial, I will show how to set up a high availability storage server with GlusterFS on Ubuntu 18.04 LTS (Bionic Beaver). We will use 3 ubuntu servers, 1 server as a client, and 2 others as a storage.

11 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: afelixpatton

hi, many thanks for article. It's very elucidated.

I'd like to know about the performance. In case I have more servers working as bricks, with this configuration you taught us with time nd more archives the performance can be affected. Can all of this became slower? And the type of the volume, in this case, replicate. Are there any others?

 

By: Kaleb KEITHLEY

For Ubuntu, using the Launchpad PPAs, this step:

  wget -O- https://download.gluster.org/pub/gluster/glusterfs/3.12/rsa.pub | apt-key add -

is completely unnecessary. The Ubuntu .debs in the gluster PPA are signed by Launchpad with their key. Follow the Launchpad instructions for installing their key.

You only need the key from download.gluster.org to install the Debian (jessie, stretch, buster) .debs from the apt repos on download.gluster.org.

By: mohammad

Follow the instruction from the official documentation.

https://docs.gluster.org/en/latest/Install-Guide/Install/

By: Julian

Thank you so much for your article :)

By: Maycon

I did these steps but not work for me when I try to mount:

Command:mount -t glusterfs 192.168.100.104:/mnt/glusterfs /mnt/glusterfsLog:

[2018-09-21 21:04:38.142685] I [glusterfsd.c:1910:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.4.2 (/usr/sbin/glusterfs --volfile-id=/mnt/glusterfs --volfile-server=192.168.100.104 /mnt/glusterfs)

[2018-09-21 21:04:38.147454] I [socket.c:3480:socket_init] 0-glusterfs: SSL support is NOT enabled

[2018-09-21 21:04:38.147498] I [socket.c:3495:socket_init] 0-glusterfs: using system polling thread

[2018-09-21 21:04:38.150022] E [glusterfsd-mgmt.c:1574:mgmt_getspec_cbk] 0-glusterfs: failed to get the 'volume file' from server

[2018-09-21 21:04:38.150046] E [glusterfsd-mgmt.c:1674:mgmt_getspec_cbk] 0-mgmt: failed to fetch volume file (key:/mnt/glusterfs)

[2018-09-21 21:04:38.151085] W [glusterfsd.c:1002:cleanup_and_exit] (-->/usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_clnt_notify+0x105) [0x7f8381904e15] (-->/usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_clnt_handle_reply+0x90) [0x7f8381904c10] (-->/usr/sbin/glusterfs(mgmt_getspec_cbk+0x449) [0x7f8381fbbd09]))) 0-: received signum (0), shutting down

 

[2018-09-21 21:04:38.151104] I [fuse-bridge.c:5260:fini] 0-fuse: Unmounting '/mnt/glusterfs'.

By: Nguyen Truong Giang

Thank you so much for your article!

But how about your opinion if using GlusterFS as Datastorage to store big data? And can we create RAID with hard disk use in 2 server?

By: Shaun

If you mount the volume on the client using:

gfs01:/vol01 /mnt/glusterfs glusterfs defaults,_netdev 0 0

Then how is that High-Availability if gfs01 goes down?

By: Munir

when i run this command: 

gluster volume create vol01 replica 2 transport tcp \ gfsnode01:/glusterfs/distributed \ gfsnode02:/glusterfs/distributed \ force

i get this error:

volume create: vol01: failed: Staging failed on gfsnode02. Error: Failed to create brick directory for brick gfsnode02:/glusterfs/distributed. Reason : No such file or directory 

By: David Hednry

Thanks for a clear article.  I am having trouble accessing gluster URL's, most giving a 404 error (July 2020). Do you have a current address?

I need to implement a mirrored file server over 3 remote sites and gluster seems to fit the bill. Do you have experience of remote servers and potential reliability/latency problems?

By: Caoyang

I tried this on Nov 23 2020 with gluster-7 and it worked flawlessly. I was able to get gluster running in 10 minutes and it paired nicely with my SLURM cluster. If you are a linux admin (or doing admin stuff), you will know very few tutorial out there "just work". This happens to be one of them and it stood the test of time. Really nice article!

By: Jeff Baker

Hi,

What would happen if one of the servers died / went off line for a while  then came back on-line again. 

i.e server 2 may have changed whilst server 1 was down.

Would the 2 servers sync themselves ?

 

Thanks

Jeff.