Gluster Installation

Installation in CentOS5

1) yum -y install fuse fuse-devel rpcbind readline-devel libibverbs-devel rpm-devel bison flex gcc rpm-build

2) goto
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
yum -y install python-ctypes

3) wget
  rpmbuild -ta glusterfs-3.2.5.tar.gz

4) cd /usr/src/redhat/RPMS/x86_64/
rpm -ivh glusterfs*.rpm

5) ln -s /opt/glusterfs/3.2.5/sbin/gluster /bin
gluster peer status

6) chkconfig glusterd on
/etc/init.d/glusterd start

7) ## Start Configure
   ## My Example :  create 4 node as storage brick gluster replication mode :

## set hostname in each node

vi /etc/hosts glus3 glus4 glus5 glus6

7a) ## in each node , create the gluster data storage location (eg: in /home/guster-data) :
mkdir /home/gluster-data

7b) ## create config in each node

vi /etc/glusterfs/glusterfsd.vol

volume posix
  type storage/posix
  option directory /home/gluster-data

volume locks
  type features/locks
  subvolumes posix

volume brick
  type performance/io-threads
  option thread-count 8
  subvolumes locks

volume server
  type protocol/server
  option transport-type tcp
  option auth.addr.brick.allow 10.1.88.*
  subvolumes brick

/etc/init.d/glusterd restart

7c) ## Go to one of node and probe any peer (storage brick peer) in gluster  :

gluster peer probe glus3
gluster peer probe glus4
gluster peer probe glus5
gluster peer probe glus6

## check it
gluster peer status

gluster volume create gluster-volume replica 4 transport tcp glus3:/home/gluster-data hqstn4:/home/gluster-data hqstn5:/home/gluster-data hqstn6:/home/gluster-data

gluster volume start gluster-volume
gluster volume info gluster-volume

7e) ## It is Completed. You can test mount this glusterfs volume in one of storage brick node :
mkdir /gluster-volume
mount -t glusterfs glus3:/gluster-volume /gluster-volume
umount /gluster-volume

Optional : mount the glusterfs system in the client.
8) ## In other linux server role as client , we can mount above the gluster volume :
   ## Please install the appropriate glusterfs rpm  (repeat step 1-4)

mkdir /gluster-volume
mount -t glusterfs glus3:/gluster-volume /gluster-volume -o backupvolfile-server=glus4
df -h

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.