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/