GlusterFS is one of the fastest growing Open Source storage platforms in existence. It’s very simple to install, scale, and manage. What makes Gluster so amazing, is its ability to scale and replicate. It really sets the bar for software defined storage systems. It runs on whitebox hardware, or virtual machines. Lately, I’ve come across quite a few people that seem to be scared of Gluster and don’t know where to begin. I am here to help! Today, we’re going to install and configure GlusterFS on a CentOS 7 virtual machine; and, we’re going to make it NFS accessible for VM storage. Every hypervisor in existence supports NFS storage for virtual machines, including VMware ESXi / vSphere, Proxmox, Xen, KVM, oVirt, OpenStack, and all the others.
Installing GlusterFS Server and Client on CentOS 7 (two nodes)
I am using two virtual machines, each running CentOS 7. Their hostnames are gfs1 and gfs2. I have added a 40GB second disk to each VM that will be dedicated to GlusterFS. I suggest you have an identically sized second partition or drive on each of your systems as well.
As always, after connecting via SSH or console, go ahead and make sure everything is updated and upgraded on both nodes.
yum -y update
And, let’s go ahead and install a few useful packages (both nodes).
yum -y install nano net-tools wget
Edit the hosts file on both nodes. Make sure both nodes can resolve to each other via hostname.
Now we can download and install Gluster (both nodes).