Verified and Tested 12/31/14


Quick installation of GlusterFS on Centos 6.x . GlusterFS clusters together storage building blocks over Infiniband RDMA or TCP/IP interconnect, aggregating disk and memory resources and managing data in a single global namespace.


You’ll need a separate hard disk(s) or virtual disk(s) to use as glusterfs storage mount point(s).

Installing and Configuring GlusterFS on CentOS 6

Install XFS file system

yum install xfsprogs –y

Download GlusterFS official repository

wget -P /etc/yum.repos.d

Install GlusterFS via YUM

 yum install glusterfs{-fuse,-server}

NOTE: You may be prompted during the installation to “Import a GPG key”, simply select “yes” and the installation will continue.

Partition, format and mount your GlusterFS Volume. In this case our “extra harddisk/virtual disk” is /dev/sdb/. NOTE: I will not be going into detail about how to partition your harddisk, as it is out of the scope of this article. We will be using the FDISK utility to partition /dev/sdb. Also note that you may choose your partitioning scheme as you please. For the sake of simplicity, we’ll be creating a single large partition /deb/sdb1

 fdisk /dev/sdb
Sample Fdisk Operation

Sample Fdisk Operation

Create a new Primary or extended partition, write it to the disk and exit the FDISK utility.

Proceed to format the disk in XFS.

 mkfs.xfs /dev/sdb1 –f

Add your new disk to /etc/fstab so that the disk is mounted at boot time

echo "/dev/sdb1 /export/brick1 xfs defaults 1 2" >> /etc/fstab
mount -a && mount

Start the GlusterFS daemon and make sure it starts upon boot time.

 service glusterd start ; chkconfig glusterd on