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不一致,改成一直即可。

 

 

 

 

 

 


你可能感兴趣的:(heartbeat常见错误排查解决方法)