Gluster InstallationInstallation in CentOS5 1) yum -y install fuse fuse-devel rpcbind readline-devel libibverbs-devel rpm-devel bison flex gcc rpm-build 2) goto http://pkgs.repoforge.org/rpmforge-release/ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm yum -y install python-ctypes 3) wget http://download.gluster.com/pub/gluster/glusterfs/LATEST/glusterfs-3.2.5.tar.gz 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 10.1.88.173 glus3 10.1.88.174 glus4 10.1.88.175 glus5 10.1.88.176 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 end-volume volume locks type features/locks subvolumes posix end-volume volume brick type performance/io-threads option thread-count 8 subvolumes locks end-volume volume server type protocol/server option transport-type tcp option auth.addr.brick.allow 10.1.88.* subvolumes brick end-volume /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 7d) 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. |