Hi,

> The vip address is configured on the real servers on lo:0.

Do you get "martian source"-messages in /var/log/messages ?
 
> > What kind of lvs-method do you use?
> 
> Direct Routing

If you are using DR-lvs you should rather use the physical interface
where your lvs-machine sends its packets.

Is your lvs-interface in the same subnet as the real-server-address?
Do you have a real interface that is located in the same subnet as the
real-server-address?

Here is what I use for DR on my real-servers (lvs has an own vlan so the
real-server-address is not on the same subnet):

Linux-Kernel-Version is 2.6.18.8,
  LVS_IFACE=eth2  # in my case

        PROCNET=/proc/sys/net/ipv4/conf
        # This prevents other interfaces from answering arp-calls to
REAL_IP
        echo 1 >  ${PROCNET}/all/arp_filter
        for i in ${PROCNET}/eth*
          do
            echo 1 > $i/arp_filter
            echo 1 > $i/arp_ignore
            echo 2 > $i/arp_announce
          done
        # Suppress "martian source" filtering on LVS_IFACE
        sysctl -q -w net.ipv4.conf.default.rp_filter=0
        sysctl -q -w net.ipv4.conf.${LVS_IFACE}.rp_filter=0
        # Add REAL_IP so that the local service can listen to it
        ip addr add ${REAL_IP}/32 dev ${LVS_IFACE} scope link >/dev/null
2>&1

This setup does NOT need ip-forwarding.

> > btw - why do you need heartbeat for this?
> 
> If the machine currently running ldirectord died, it will 
> automatically start on the other cluster node.
 
> Thanks.
> Randy


Kind regards, Nils
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to