I've installed Heartbeat in two CentOS 6.2 machines which are running http service. I want these machines to be in Active/Passive state. I want only one machine to be active. Here's my ha.cf
file:
logfacility local0
ucast eth1 192.168.0.66
#bcast eth1
keepalive 2
warntime 6
deadtime 10
auto_failback on
use_logd yes
node web5
node web5b
And here's the haresources
file:
web5 IPaddr::192.168.0.60/24/eth1/192.168.0.255
The problem is when I start heartbeat on both servers, the IP 192.168.0.60 stays active in both servers. I want it to be active only on Web5 and if web5 goes down it'll be active in Web5b. My heartbeat version is 3.0.4.
Any help?
It appears that you may have made this more difficult. I just setup this for heartbeat active/failover. In you haresources files, try removing the bcast address and make is like below.
Your ha.cf file needs a quick edit too. Uncomment "bcast eth1" so heartbeat will use broadcast on eth1. Make sure httpd is off and bring heartbeat online, httpd should start and be available. You can confirm by running either command below.
ifconfig
orservice heartbeat status
e.g. output
Let me know if that fixed it for you.