我试图在service heartbeat start Ubuntu 10.04上开始心跳,但得到以下错误:
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.
在服务器上uname -n产生loadb1 ,在第二个服务器上uname -n产生loadb2 。 这两个服务器可以用这些名字相互ping通。
这是两个服务器上的/etc/ha.d/ha.cnf :
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
这是两个服务器上的/etc/ha.d/haresources :
node1 IPaddr::46.20.121.113 httpd smb dhcpd
Authkeys也被设置。
我究竟做错了什么?
我最不清楚的部分是ucast / bcast线。
将loaddb1放入haresources – 不是node1 。