Posts Tagged ‘HighAvalablity’

HA for Linux Box

Wednesday, February 3rd, 2010

Install hearbeat

then create files “haresources” ,”/etc/ha.d/ha.cf”,

### My configuration file *****
# haresources
[root@druid ha.d]# pwd
/etc/ha.d
[root@druid ha.d]# cat haresources
druid 192.168.21.84 asterisk
[root@druid ha.d]#
// ie ‘hostname of primary server ‘ ‘floating IP address’ ‘names of service to be executed during failover
*** ha.cf ******
debugfile /var/log/ha- debug
logfile /var/log/ha- log
keepalive 2
deadtime 10
bcast eth0
node druid elastix
auto_failback off
############ ######### #####
***** /etc/hosts ********
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdoma in localhost
127.0.0.1 asterisk
192.168.21.158 druid druid
192.168.21.156 elastik elastik