Heartbeat V2 version based on Ha-gui do high availability

Source: Internet
Author: User
Tags install perl

I. Introduction of Heartbeat

Please click here for more information

Heartbeat V1 version Configuration please click

Second, the Environment preparation

1, configure the host name, two hosts the same

[Email protected] ~]# cat/etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.0.10 node1.wzlinux.com node1192.168.0.11 N ode2.wzlinux.com node2192.168.0.13 node3.wzlinux.com Node3

2, the configuration of dual-machine trust

Node1:

Ssh-keygen-t rsa-p ' Ssh-copy-id node2

Node2

3. Turn off firewall and SELinux

Service iptables Stopsetenforce 0

4. Host Details

Name Ip Installing the Software
System
Node1.wzlinux.com

vip:192.168.0.18

eth0:192.168.0.10

Heartbeat Software Suite

CentOS 6.5 x64

Minimized installation

Node2.wzlinux.com

vip:192.168.0.18

eth0:192.168.0.11

Heartbeat Software Suite

CentOS 6.5 x64

Minimized installation

Third, Heartbeat V2 installation

1. Install dependent packages

Yum install perl-timedate net-snmp-libs libnet PyXML yum install libtool-ltdl-devel gettext pygtk2-libglade

2. Installing Heartbeat Components

You can go to download the relevant RPM software package, also can download from my attachment, because centos 6.5 reason, we can not do yum installation here, because it will conflict, so here use RPM to install.

RPM-IVH heartbeat-2.1.4-12.el6.x86_64.rpm heartbeat-pils-2.1.4-12.el6.x86_64.rpm heartbeat-gui-2.1.4-12.el6.x86_ 64.rpm heartbeat-stonith-2.1.4-12.el6.x86_64.rpm

Iv. Configuration of Heartbeat

My configuration here is relatively simple, do not carefully explain the meaning of each parameter, if you need to see the details of the above V1 version of the settings, if there is no special instructions, all operations are performed on the Node1 above.

1. Prepare the master configuration file

cp/usr/share/doc/heartbeat-2.1.4/ha.cf/etc/ha.d/

2. Configuring the Master File

# cat/etc/ha.d/ha.cf logfile/var/log/ha-logkeepalive 2deadtime 30warntime 10initdead 120udpport 694baud 19200mcast et H0 225.0.100.1 694 1 0auto_failback onnode node1.wzlinux.comnode node2.wzlinux.comping 192.168.0.1crm on

3. Configure the Authentication file

Authentication file permissions must be 600, chmod authkeys.

cp/usr/share/doc/heartbeat-2.1.4/authkeys/etc/ha.d/# Cat/etc/ha.d/authkeys Auth SHA1 hi!sjdhkashdbd568

4. Synchronizing the configuration files

/usr/lib64/heartbeat/ha_propagate #次命令是heartbeat提供的同步工具




















This article is from the "Little Water Drop" blog, please make sure to keep this source http://wangzan18.blog.51cto.com/8021085/1723200

Heartbeat V2 version based on Ha-gui do high availability

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.