zoukankan      html  css  js  c++  java
  • 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不一致,改成一直即可。

  • 相关阅读:
    第十章 2 字符串的常用操作
    第十章 1 字符(驻留机制)
    第九章 4 集合生成式
    ArrayDeque API 与算法分析
    Java 双端队列接口 Deque
    LinkedList 的 API 与数据结构
    ArrayList 源码分析
    new ArrayList(0) 和 new ArrayList() 和一样吗?
    Java 中泛型的实现原理
    Java 中的 equals() 和 hashCode()
  • 原文地址:https://www.cnblogs.com/chenjiahe/p/5973052.html
Copyright © 2011-2022 走看看