如何设置3节点心跳群集?

我想使用心跳在三个节点上设置一个虚拟IP。 目前,我有这样的:

ha.cf:

# Facility to use for syslog()/logger (alternative to log/debugfile) logfacility local0 # keepalive: how many seconds between heartbeats keepalive 2 # deadtime: seconds-to-declare-host-dead deadtime 10 # What UDP port to use for udp or ppp-udp communication? udpport 694 # What interfaces to broadcast heartbeats over? ucast eth0 192.168.20.22 ucast eth0 192.168.20.23 ucast eth0 192.168.20.24 # What interfaces to heartbeat over? udp eth0 # Tell what machines are in the cluster # node nodename ... -- must match uname -n node prx2 node prx3 node prx4 

的haresources:

 prx2 192.168.20.25 

当我启动机器时, prx2获取虚拟IP。 但是当我closuresprx2时prx3prx4都会获得虚拟IP,这意味着我的服务不再可用

我究竟做错了什么?

PS:我在Debian Squeeze上

对不起,我没有你的问题的答案,但从我的经验,我build议使用心跳,这是一个死的项目的继任者的心脏起搏器

看看这里: http : //clusterlabs.org/