Just remind you some steps after you installed the ha package in both server:

================================================
1) In primary ha server (give a example host name: server1 ip: 10.0.0.1)

vi /etc/ha.d/ha.cf

debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
bcast eth0
ucast eth0 10.0.0.2
keepalive 2
auto_failback on
node server1
node server2

vi /etc/ha.d/haresources

server1 IPaddr::10.0.0.3/24/eth0 httpd mysqld MailTo::admin@abc.com::Heartbeat_Notification

================================================
2) In secondary ha server (give a example host name: server2 ip: 10.0.0.2)

vi /etc/ha.d/ha.cf

debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
bcast eth0
ucast eth0 10.0.0.1
keepalive 2
auto_failback on
node server1
node server2

vi /etc/ha.d/haresources

server1 IPaddr::10.0.0.3/24/eth0 httpd mysqld MailTo::admin@abc.com::Heartbeat_Notification

================================================
3) Set the 'authkeys' in both server

vi /etc/ha.d/authkeys

auth 3
#1 crc
#2 sha1
3 md5 password

chmod 600 /etc/ha.d/authkeys

================================================
4) After modify the setting on both ha server, ensure the nekwork connection is ok (for web server used LAN, but for mail server used cross cable in drbd)

5) It is suitable for web server and data is used rsync script everyday in cronjob (No use in drbd to reduce maintanence problem unless mail server).

6) restart both ha daemon, and see any eth0:0 ip:10.0.0.3 is generated by ha in primary ha server.

If success, try disconnect primary and see seconday ha will take over all services as IP 10.0.0.3 or not.


Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.