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

 

转载于:https://www.cnblogs.com/chenjiahe/p/5973052.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值