Linux

Centos linux 上的心跳報錯資訊

  • March 21, 2012

這是我收到的錯誤消息:

heartbeat[22269]: 2012/03/21_07:36:55 ERROR: Illegal directive [unicast] in /etc/ha.d/ha.cf
heartbeat[22269]: 2012/03/21_07:36:55 ERROR: Heartbeat not started: configuration error.
heartbeat[22269]: 2012/03/21_07:36:55 ERROR: Configuration error, heartbeat not started.

這是我的 ha.cf 文件:

logfile /var/log/ha-log
###logfacility local0
keepalive 1
deadtime 10
initdead 90
udpport 694
unicast eth0 "node02_IP_Address
auto_failback on
node node01 
node node02
###respawn hacluster /usr/lib/heartbeat/ipfail

任何想法謝謝,E。

單播的指令是“ucast”而不是“單播:

logfile /var/log/ha-log
###logfacility local0
keepalive 1
deadtime 10
initdead 90
udpport 694
ucast eth0 node02_IP_Address
auto_failback on
node node01
node node02
###respawn hacluster /usr/lib/heartbeat/ipfail

正如您收到的錯誤消息所說,unicast它不是有效的配置選項。ucast如果我沒記錯的話,你應該改用。

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