Configuring High availability clusters in CentOS

Source: Internet
Author: User

First, overview:

System: Centos5.0

Cluster Software: Heartbeat

Node 1IP (main): 192.168.1.105

Node 2IP (from): 192.168.1.106

Virtual ip:192.168.1.102

Using Uname-n results on Node 1 must be node01, and uname-n results must also be NODE02 on Node 2. IP 192.168.1.102 is a virtual IP used for webserver.

Download and install package and configuration:

1. The following software packages are required:

heartbeat-2.1.2

heartbeat-2.1.2

heartbeat-stonith-2.1.2

You can also use the Yum-y install heartbeat for installation.

2. Configuring heartbeat on each node requires the following three files:

Authkeys, HA.CF, haresources, they exist in the/etc/ha.d/directory.

3, create the above mentioned three files:

cp /usr/share/doc/heartbeat-2.1.2/authkeys /etc/ha.d/5
cp /usr/share/doc/heartbeat-2.1.2/ha.cf /etc/ha.d/5
cp /usr/share/doc/heartbeat-2.1.2/haresources /etc/ha.d/

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.