(? ) Enterprise part of HA cluster

Source: Internet
Author: User

Requires three pure virtual machines,server3 as

server1:172.25.45.1

server2:172.25.45.2

server3:172.25.45.3

"server1,server2"

1. reconfigure the yum source

Vim Dvd.repo

Content

Rum Repolist

Figure

2. configuring the /etc/hosts file

Figure

3.yum Install-y Ricci

4.echo Westos | passwd--stdin Ricci

5.chkconfig Ricci on

/etc/init.d/ricci start

"server3"

1. reconfigure the yum source

Vim Dvd.repo

Content

Rum Repolist

Figure

2. Configure the /etc/hosts file (physical machine also required)

Figure

3.yum Install httpd

/ETC/INIT.D/HTTPD start

4.yum install-y Luci

[Email protected] ~]# rpm-q Luci

Luci-0.26.0-48.el6.x86_64

/etc/init.d/luci start

Starting SASLAUTHD: [OK]

Start Luci ... [OK]

Point your Web browser to https://server6.example.com:8084 (or equivalent) to access Luci

Https://server 3 . example.com:8084 Chart

Figure

If repeated creation in the process will cause an error

Workaround:

Rm-rf/etc/cluster/cluster.conf

Restart Service (??? Pending verification)

2.fence

"Physical Machine"

Yum Search Fence

Yum

Fence-virtd.x86_64:daemon which handles requests from Fence-virt

Fence-virtd-libvirt.x86_64:libvirt backend for FENCE-VIRTD **

Fence-virtd-multicast.x86_64:multicast Listener for FENCE-VIRTD **

Fence-virtd-serial.x86_64:serial Vmchannel Listener for FENCE-VIRTD

fence-virt.x86_64:a Pluggable fencing framework for virtual machines **

(About three ,,, to be verified)

Figure

Yum Install fence-virt.x86_64 fence-virtd-multicast.x86_64 fence-virtd-libvirt.x86_64

[Email protected] ~]# Rpm-qa | grep Fence

Fence-virtd-libvirt-0.3.0-16.el7.x86_64

Fence-virtd-0.3.0-16.el7.x86_64

Fence-virtd-serial-0.3.0-16.el7.x86_64

Fence-virtd-multicast-0.3.0-16.el7.x86_64

Fence-virt-0.3.0-16.el7.x86_64

Figure

(You may need to manually create a directory mkdir/etc/cluster)

Fence_virtd-c

Figure

Will cover /etc/fence_virt.conf

Netstat-anulp | grep:1229

Figure

DD If=/dev/urandom Of=fence_xvm.key bs=128 count=1

File Fence_xvm.key

Figure

Systemctl Restart FENCE_VIRTD

Scp/etc/cluster/fence_xvm.key [email protected] 1 :/etc/cluster/

Scp/etc/cluster/fence_xvm.key [email protected] 2 :/etc/cluster/

Virsh list(figure)

"server1/server2"

Clustat

Web page

Figure

Test:

"server2"

Fence_node Server 2 . example.com # # Remote Power off server2

3.webfail

"server1/server2"

Yum Install httpd

echo server1.example.com > index.html

echo server2.example.com > index.html

Figure

Test:

Figure H(Server1 at this time )

clusvcadm-r apache-m server2.example.com # # access server2

Figure H(Server2 at this time )

/etc/init.d/network Stop # # Turn off the Server1 Network Service

Server1 off , auto restart

Clustat Figure server2 figure H

echo C >/proc/sysrq-trigger # # crashes

Server1 off , auto restart

Clustat Figure server2 figure H

(? ) Enterprise part of HA cluster

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.