View Single Post
Old 22nd November 2006, 21:59
cracker54 cracker54 is offline
Junior Member
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Ldirectord and heartbeat with multiple IPs

So I have a question about heartbeat and ldirectord. This may be a simple question, but I don't know the exact answer so if I could get some help with this it would be greatly appreciated.

I am working on a project that has the following servers:

2 Linux directors each running ldirectord and heartbeat
3 web servers which are being load balanced via the Linux directors
Multiple other servers that the client has running for their business

There are 8 public or “virtual” IPs all used to get to various web pages, servers and services.
We will say the IPs range from to with netmask of
Internally they are running a standard 192.168.X.X network.

We are running a High Capacity High Availability and Load Balancing model for the setup using ldirectord and heartbeat. The picture below is a general setup

Anyways now down to the real question.

I am wondering if there is anything special we need to do with the /etc/ha.d/haresources file to accommodate for all the extra IPs. Or does the /etc/ha.d/ file take care of the “virtual” IPs?

This is what the /etc/ha.d/haresources and the /etc/ha.d/ files currently look like.


logfacility local0
bcast eth0 # Linux
mcast eth0 694 1 0
auto_failback off
node LoadBalancer1
node LoadBalancer2
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster


LoadBalancer1 \ \
LVSSyncDaemonSwap::master \

What I am unsure of is if we need to add more IPs to the /etc/ha.d/haresources file since the client wants to be able to get to all of their servers via a public IP being routed through the linux directors.... PLEASE HELP!
Reply With Quote
Sponsored Links