High-Availability

心跳:/etc/ha.d//haresources 中的錯誤節點名點__和1n這d和1點__和1node1

  • March 12, 2013

我正在嘗試在 Ubuntu 10.04 上啟動心跳service heartbeat start,但出現以下錯誤:

heartbeat[24829]: 2011/11/22_19:31:07 ERROR: Bad nodename in /etc/ha.d//haresources [node1]
heartbeat[24829]: 2011/11/22_19:31:07 ERROR: Configuration error, heartbeat not started.

On on server uname -n produces loadb1, on the second server uname -n produces loadb2. The two servers can ping each other okay with those names.

This is /etc/ha.d/ha.cnf on both servers:

debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 10
udpport 694
bcast eth1
ucast eth0 my.external.ip
ucast eth0 my.external.ip
ucast eth1 10.0.0.5
ucast eth1 10.0.0.6
#udp     eth0
node    loadb1
node    loadb2
auto_failback off

And this is /etc/ha.d/haresources on both servers:

node1 IPaddr::46.20.121.113 httpd smb dhcpd

Authkeys is also set up.

What am I doing wrong?

The part where I’m least clear is the ucast/bcast lines.

Put loaddb1 into the haresources - not node1.

引用自:https://serverfault.com/questions/333824