README for RUNOS controller failover:
-
Installing software for heartbeat. For example, to install on Ubuntu 12.04:
sudo apt-get install heartbeat sudo apt-get install chkconfig
-
Create file /etc/heartbeat/ha.cf on both hosts:
autojoin none logfacility local0 udpport 694 bcast (eth0) eth1 keepalive 40ms warntime 1 deadtime 2 #initdead 10 auto_failback on node server01 node server02 respawn hacluster /usr/lib/heartbeat/ipfail use_logd yes debugfile /var/log/ha-debug logfile /var/log/ha-log
-
Create file /etc/ha.d/haresources on both hosts: 3.1 For first node:
server02 Ipaddr::10.250.30.205/24 runos
3.2 For second node:
server01 Ipaddr::10.250.30.201/24 runos
-
Create file /etc/ha.d/authkeys on both hosts:
auth 2 2 sha1 password
-
Update file etc/hosts on both hosts: 127.0.0.1 localhost 10.0.3.201 server01 10.0.3.205 server02
-
Update server configuration on both hosts:
sudo chmod 600 /etc/ha.d/authkeys sudo chkconfig --level 2345 heartbeat on
-
Start heartbeat on both hosts:
/etc/init.d/heartbeart start or service heartbeat start
-
Start RUNOS on first node.