System environment: CentOS 6 x86_64
Cluster Environment: Server1 Server2
1. Add Glusterfs Source to CentOS
wget -p/etc/Yumrepos.d http://download.gluster.org/pub/gluster/glusterfs/latest/ Rhel/glusterfs-epel.repo
Installing Glusterfs-server
Yum Install Glusterfs-server
At this point, if you are prompted for a missing pyxattr and LIBURCU two packages, you can download and install this
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/visionsoftware/CentOS_CentOS-6/x86 _64/pyxattr-0.5.0-4.2.x86_64.rpm
pyxattr-0.5.0-4.2.x86_64.rpm
wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/pyxattr-0.5.0-4.2.x86_64.rpm
pyxattr-0.5.0-4.2.x86_64.rpm
2, executed in Server1
Gluster Peer probe Server2
Execute in Server2
Gluster Peer probe Server1
3, executed separately in Server1 and Server2
mkdir /data/brick1/gv0
4, executed on either Server1 or Server2 machine
2 server1:/data/brick1/gv0 server2:/data/brick1/gv0gluster volume start gv0
5, test Glusterfs installation Results
Mount -t glusterfs server1:/gv0/mnt for in 'seq -w1 - Do CP Done ls WC -lls -la/data/brick1/gv0
Essay content is mainly extracted from Glusterfs official documents
Glusterfs Installation and initialization