[Linux-HA] Heartbeat kills my lo:0, and therefore my LVS-DR

Nic Pottier nicpottier at yahoo.com
Fri Dec 8 17:07:08 MST 2006


I'm been trying to set up a two node LVS-DR setup on CentOS 4.4 such as 
the one outlined here:
<http://koto.ultramonkey.org/3/topologies/sl-ha-lb-eg.html>

I feel I have my head wrapped around things rather well after a day of 
mucking with this and a considerable amount of reading, but I have one 
last gotcha which despite many workarounds I can't get through.

On my secondary node (heartbeat controlling ldirectord), heartbeat 
insists on killing my loopback with the VIP.  This of course prevents 
that box from accepting any traffic on the VIP, making it unable to 
answer requests.  Worse still, the primary (live) director believes it 
to be up since the RIP happily answers.

This must be something dumb on my part, but I swear I've followed every 
howto, searched every archive and read every book I could find and I'm 
not having any luck.

If I manually bring up lo:0 AFTER heartbeat kills it, sure enough things 
work fine.

I even tried writing my own resource to bring lo:0 up when Heartbeat 
releases it, but the killing takes place AFTER the stop so it doesn't do 
any good.

What's the two line answer to this?  I know there must be one, but for 
the life of me I can't figure it out.

I'm using the CentOS 4.4 extras packages, namely:
    heartbeat.x86_64              2.0.7-1.c4     installed
    heartbeat-ldirectord.x86_64   2.0.7-1.c4     installed

I promise I'll write a CentOS howto on this when i figure it out.

Many thanks,

-Nic





More information about the Linux-HA mailing list