How to Install and Configure GlusterFS on CentOS 6

Andrew Mora
by Atlantic.Net (6posts) under Cloud Hosting
0 Comments
Verified and Tested 12/31/14

Introduction

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.

Prerequisites

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 http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/glusterfs-epel.repo

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

 

Congratulations you have installed and configured GlusterFS on CentOS 6. We hope this article assisted you with the process. Thank you for following this How-To, check back for updates and more interesting Centos how-to’s or learn more about our reliable cloud hosting solutions.

Not sure what you need?

Get a free consultation today!

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources

We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.