EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Linux ]

"Heartbeat Configuration" - Mehmet Uluer - (2006-05-15 10:38:12)   [10457]

Let us configure 2 system with heartbeat for high availability to serve FTP deamon with a shared storage over IP SAN.

Firstly, install 2 identical Linux "base system" on the machines (cengaver1-cengaver2) with the following packets:
heartbeat,
heartbeat-ldirectord,
heartbeat-pils,
heartbeat-stonith..

Secondly, connect the machines to eachother in 2 way; one from local area (136.10.199.97 - 136.10.199.98) and one by cross (99.99.99.101 - 99.99.99.102).

Thirdly, configure the heartbeats;

On the first machine edit "ha.cf" and make the following changes.

cengaver1:/ # more /etc/ha.d/ha.cf
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
warntime 10
initdead 120
udpport 694
auto_failback off
watchdog /dev/watchdog
node cengaver1
node cengaver2
ucast eth1 136.10.199.98
ucast eth2 99.99.99.102

On the second machine, edit "ha.cf" and make the following changes.

cengaver2:~ # more /etc/ha.d/ha.cf
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 30
warntime 10
initdead 120
udpport 694
auto_failback off
watchdog /dev/watchdog
node cengaver2
node cengaver1
ucast eth1 136.10.199.97
ucast eth2 99.99.99.101

Now, it is time to configure the shared resources (iSCSI, vsFTPd and SharedIP(136.10.199.99)). Edit the "haresources" file of the both machines and make the following changes;

cengaver1:/ # more /etc/ha.d/haresources
cengaver1 136.10.199.99 iscsi vsftpd

Your system is prepared for the action! reboot first machine and then the second.


Mail to My Friend , Home Page