heartbeat常見錯誤排查解決方法

錯誤一:

[root@snale2 ha.d 11:55:37]#service heartbeat start

Starting High-Availability services: INFO:  Resource is stopped

 Heartbeat failure [rc=6]. Failed.

 

heartbeat: udpport setting must precede media statementsheartbeat[2299]: 2016/10/18_11:55:43 ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not executable

heartbeat[2299]: 2016/10/18_11:55:43 ERROR: Heartbeat not started: configuration error.

heartbeat[2299]: 2016/10/18_11:55:43 ERROR: Configuration error, heartbeat not started.

解決方法

#vim /etc/ha.d/ha.cf   將 respawn hacluster /usr/lib/heartbeat/ipfail 改成 respawn hacluster /usr/lib/heartbeat/ipfail    //系統是64位的,所以路徑應該在/usr/lib64/目錄

 

錯誤二:

[root@snale2 ha.d 12:01:03]#service heartbeat start

Starting High-Availability services: INFO:  Resource is stopped

 Heartbeat failure [rc=6]. Failed.

 

heartbeat: udpport setting must precede media statementsheartbeat[2464]: 2016/10/18_12:01:59 ERROR: Missing auth directive in keyfile [/etc/ha.d//authkeys]

heartbeat[2464]: 2016/10/18_12:01:59 ERROR: Authentication configuration error.

heartbeat[2464]: 2016/10/18_12:01:59 ERROR: Configuration error, heartbeat not started.

解決方法

#vim /etc/ha.d/authkeys

3 md5 Hello!

auth 3

3 md5 Hello!

錯誤三:

[root@snale2 ha.d 13:44:32]#service heartbeat start

Starting High-Availability services: INFO: Resource is stopped

Heartbeat failure [rc=6]. Failed.

 

heartbeat: udpport setting must precede media statementsheartbeat: baudrate setting must precede media statementsheartbeat[2641]: 2016/10/18_13:44:36 info: Pacemaker support: false

heartbeat[2641]: 2016/10/18_13:44:36 ERROR: Current node [snale2.localdomain] not in configuration!

heartbeat[2641]: 2016/10/18_13:44:36 info: By default, cluster nodes are named by `uname -n` and must be declared with a 'node' directive in the ha.cf file.

heartbeat[2641]: 2016/10/18_13:44:36 info: See also: http://linux-ha.org/wiki/Ha.cf#node_directive

heartbeat[2641]: 2016/10/18_13:44:36 WARN: Logging daemon is disabled --enabling logging daemon is recommended

heartbeat[2641]: 2016/10/18_13:44:36 ERROR: Configuration error, heartbeat not started.

錯誤原因:在ha.cf配置中 node snale2 與 uname -n  得出的結果snale2.localdomain不一致,改成一直即可。

 

 

 

 

 

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章