1, first install 3 nodes on 3 nodes in 4 storage nodes zookeeper, see http://blog.csdn.net/u010855924/article/details/52847308
2, the Fourth storage node only need RPM-IVH zookeeper-3.4.6-redhat6.4.x86_64.rpm can, do not need to configure and start, because the installation of sheepdog. Configure need to specify Sheepdog zookeeper, otherwise execute./configure--enable-zookeeper--disable-corosync does not pass
3. Start compiling and installing sheepdog
3.1 Install the following installation package first, otherwise compile sheepdog without passing
Yum Install Automake libtool-y//./autogen.sh when both tools are required, otherwise the Configure file cannot be generated
RPM-IVHUSERSPACE-RCU-0.7.9-1.EL7.X86_64.RPM//The following three installation packages are required for make, otherwise make does not pass
rpm-ivhuserspace-rcu-devel-0.7.9-1.el7.x86_64.rpm
rpm-ivhyasm-1.2.0-4.el7.x86_64.rpm
3.2 Enter the Sheepdog directory and start the installation
CD sheepdog/
CD script/
chmod u+x gen_bash_completion.pl//Download the sheepdog directory where the file needs to have Execute permission
Cd.. /
chmod u+x autogen.sh//Download the sheepdog directory where the file needs to have Execute permission
./autogen.sh
./configure--enable-zookeeper--disable-corosync
Make
Make install
Installation Complete
4, four storage nodes format and mount two disks
Mkfs.ext4/dev/sdb
Mkfs.ext4/dev/sdc
Mount-t ext4/dev/sdb/shd/obj0
Mount-t ext4/dev/sdc/shd/obj1///shd/obj0 and/SHD/OBJ1 directories created manually
5. Four storage nodes start Sheepdog execution: Sheep/shd/obj0/shd/obj1-c zookeeper : 192.168.232.100:2181,192.168.232.101:2181,192.168.232.102:2181,192.168.232.103:2181
6, if the start is successful, in 4 Taichung, one of the machines to execute the Dog node list can view the cluster node information as follows:
[Root@s01 ~]# Dog Node list
Id Host:port v-nodes Zone
0 192.168.232.100:7000 128 1692969152
1 192.168.232.101:7000 128 1709746368
2 192.168.232.102:7000 128 1726523584
3 192.168.232.103:7000 128 1743300800