Comments on High-Availability Storage With GlusterFS 3.2.x On CentOS 6.3 - Automatic File Replication (Mirror) Across Two Storage Servers

This tutorial shows how to set up a high-availability storage with two storage servers (CentOS 6.3) that use GlusterFS. Each storage server will be a mirror of the other storage server, and files will be replicated automatically across both storage servers. The client system (CentOS 6.3 as well) will be able to access the storage as if it was a local filesystem. GlusterFS is a clustered file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. Storage bricks can be made of any commodity hardware such as x86_64 servers with SATA-II RAID and Infiniband HBA.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Alex

Adding your glusterfs mount to /etc/fstab with the "defaults,_netdev" parameters won't work and will prevent your system booting.

Mounting on boot uses mount.gluster fs, not the "mount" command, and mount.glusterfs doesn't recognize _netdev, so your system will hang trying to "mount local filesystems' before it loads network services.

Instead you'll need to configure a startup script that will run after network services have loaded.

By: Dave

Thanks for this tutorial.  I have a question. 

 After the gluster volume is mounted locally on both the servers, and then you mount that from the client1 to server1.  You can then create / edit files.  But in your example, you then shutdown server1 and have client1 make changes, but since client1 specificly used server1 as a mount point, the client freezes when trying to make changes. 

 Would that scenario require a load balancer or something? 

 Thanks,

Dave

By: sm1ly

do u have any suggestion? cause I got freeze too. I only can make something like vrrp balance with virtual ip. but I dont know what problems could be

By: Zeke

how to configure gluster  without client?

im using gluster for mail server.