Sheepdog+zookeeper Storage Cluster Build: 4 Node Installation Sheepdog (3 of which are zookeeper nodes)

Source: Internet
Author: User
Tags chmod zookeeper

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




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.