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.2顺序表(sequence list)
    《算法竞赛入门经典》6.3.1二叉树-小球下落
    java_时间戳与Date_相互转化
    java事物
    Mysql如何向存在外键的数据表中插入数据
    git基本配置
    mysql时间属性之时间戳和datetime之间的转换
    【转】变量命名(简短且无歧义)
    【转】mybatis实战教程(mybatis in action),mybatis入门到精通
    [转]DAO层,Service层,Controller层、View层
  • 原文地址:https://www.cnblogs.com/chenjiahe/p/5973052.html
Copyright © 2011-2022 走看看