Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 file:

logfacility     local0
ucast   eth1
#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::

The problem is when I start heartbeat on both servers, the IP 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?

share|improve this question

1 Answer 1

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.

web5 IPADDR:: httpd

Your 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 or service heartbeat status

e.g. output

service heartbeat status
heartbeat OK [pid 3207 et al] is running on <node_name>, in this case web01
eth0:0    ----------------------------------------------  
          inet addr:  Bcast:  Mask:

Let me know if that fixed it for you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.