我可以在同一个networking中使用2个心跳群集吗?

我正在玩HeartBeat。 我正在尝试在同一个networking中创build两个节点,每个节点都有两个节点。

ldap1(192.168.3.1)ldap2(192.168.3.2)www1(192.168.3.3)www2(192.168.3.4)

使用ldap1,ldap2和www1,www2closures,HA使用ldap1,ldap2closures和www1,www2。 HA与ldap1.ldap2上和www1,www2上,HA不起作用。

我有错误:

ERROR: netstring authentication failed 

我可以有两个HA集群在同一个networking中工作吗?

是的你可以。 您需要在Heartbeatconfiguration(/etc/ha.d/ha.cf)中configuration不同的多播地址,或使用单播地址。

使用单播的示例configuration(mcast注释掉):

 # Only allow the nodes specified in to the cluster autojoin none # Use hostnames output by 'uname -n' node node-a node-b # Specify the method, interfaces, and addresses for heartbeat communication. # Depending upon the network configuration this section may need to be different # on each host (listing only the local interfaces and addresses); however # Heartbeat should be smart enough to determine which interfaces are local # and which belong to a peer udpport 694 ucast eth0 172.17.2.50 ucast eth0 172.17.2.51 ucast eth1 172.18.2.50 ucast eth1 172.18.2.51 # Or, use mcast # mcast eth0 239.0.0.1 694 1 0 # mcast eth1 239.0.0.1 694 1 0 # Specify where to log to logfacility syslog # Thresholds (in seconds) keepalive 2 warntime 10 deadtime 30 initdead 120