错误一:

[root@snale2 ha.d ::]#service heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=]. Failed. heartbeat: udpport setting must precede media statementsheartbeat[]: //18_11:: ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not executable
heartbeat[]: //18_11:: ERROR: Heartbeat not started: configuration error.
heartbeat[]: //18_11:: 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 ::]#service heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=]. Failed. heartbeat: udpport setting must precede media statementsheartbeat[]: //18_12:: ERROR: Missing auth directive in keyfile [/etc/ha.d//authkeys]
heartbeat[]: //18_12:: ERROR: Authentication configuration error.
heartbeat[]: //18_12:: ERROR: Configuration error, heartbeat not started.

解决办法:

vim /etc/ha.d/authkeys

3 md5 Hello!

改成

auth 3

3 md5 Hello!

错误三:

[root@snale2 ha.d ::]#service heartbeat start
Starting High-Availability services: INFO: Resource is stopped
Heartbeat failure [rc=]. Failed. heartbeat: udpport setting must precede media statementsheartbeat: baudrate setting must precede media statementsheartbeat[]: //18_13:: info: Pacemaker support: false
heartbeat[]: //18_13:: ERROR: Current node [snale2.localdomain] not in configuration!
heartbeat[]: //18_13:: info: By default, cluster nodes are named by `uname -n` and must be declared with a 'node' directive in the ha.cf file.
heartbeat[]: //18_13:: info: See also: http://linux-ha.org/wiki/Ha.cf#node_directive
heartbeat[]: //18_13:: WARN: Logging daemon is disabled --enabling logging daemon is recommended
heartbeat[]: //18_13:: ERROR: Configuration error, heartbeat not started.

错误原因:在ha.cf配置中 node snale2 与 uname -n  得出的结果snale2.localdomain不一致,改成一直即可。

heartbeat错误排查的更多相关文章

  1. [Python Web]配置 nginx 遇到错误排查(初级)

    配置 nginx 遇到错误排查(初级) 系统版本:ubuntu 14.04,nginx 版本:nginx/1.4.6 (Ubuntu) 本文不是一步步搭建 nginx 的过程,而是我在使用 nginx ...

  2. NGINX 502错误排查(转)

    一.NGINX 502错误排查 NGINX 502 Bad Gateway错误是FastCGI有问题,造成NGINX 502错误的可能性比较多.将网上找到的一些和502 Bad Gateway错误有关 ...

  3. docker镜像运行错误排查

    docker做服务时,如果客户端无法连接,错误排查: 1.先使用 docker ps 查看镜像是否都在运行中,如果没有就进入镜像查看日志 2.如果确定代码及配置文件没有问题,就需要检查镜像的替换是否正 ...

  4. docker 错误排查:无法进入容器.

    docker 错误排查:无法进入容器. #docker exec -it 3c1d bash rpc error: code = 2 desc = oci runtime error: exec fa ...

  5. 原创Couldn't read packet: Connection reset by peer 错误排查思路(推荐)

    作为一个运维 不是你懂多少知识才是你的价值 你有幸能遇到多少错误才是你的最大的价值 知识 你有我有大家有  错误我有你没有 这便是我的价值 我遇到一个错误 蛮难遇到的一个错误 所以想分享给大家 下面我 ...

  6. 总结:利用asp.net core日志进行生产环境下的错误排查(asp.net core version 2.2,用IIS做服务器)

    概述 调试asp.net core程序时,在输出窗口中,在输出来源选择“调试”或“xxx-ASP.NET Core Web服务器”时,可以看到类似“info:Microsoft.AspNetCore. ...

  7. mysql添加,授权,删除用户以及连接数据库Can't connect to MySQL server on '192.168.31.106' (113)错误排查

    centos7下面操作mysql添加,授权,删除用户 添加用户 以root用户登录数据库,运行以下命令: create user test identified by '; 上面创建了用户test,密 ...

  8. MySQL启动错误排查

    一般情况下mysql的启动错误还是很容易排查的,但是今天我们就来说一下不一般的情况.拿到一台服务器,安装完mysql后进行启动,启动错误如下: 有同学会说,哥们儿你是不是buffer pool设置太大 ...

  9. date\"123456 错误排查

    最近服务器重装,干脆将所有的源代码都重新整理了一下,开始一切正常,后来发现,每次修改一个画面的时候就会报错 跟踪了下发现是datetime.SmartDate等时间类型的数据,在进行序列化的时候改变了 ...

随机推荐

  1. Flex和Servlet结合上传文件报错(一)

    1.具体错误如下 一个表单域 不是一个表单域 java.io.FileNotFoundException: D:\MyEclipse\workspace\FlexFileUpload\Web\null ...

  2. JustMock .NET单元测试利器(三)用JustMock测试你的应用程序

    用JustMock测试你的应用程序 本主题将指导您通过几个简单的步骤来使用Telerik®JustMock轻松测试您的应用程序.您将理解一个简单的原理,称为Arrange / Act / Assert ...

  3. Vasya and Basketball CodeForces - 493C

    Vasya follows a basketball game and marks the distances from which each team makes a throw. He knows ...

  4. tomcat原理(二)

    一.打包JavaWeb应用 在Java中,使用"jar"命令来对将JavaWeb应用打包成一个War包,jar命令的用法如下:

  5. ubuntu14.04安装cuda

    1 装系统时候注意,另外14.04要好于12.04,自带了无线驱动 ubuntu14.04安装完不要update 2 安装cuda和cudnn http://blog.csdn.net/l297969 ...

  6. Android中selector的使用

    第一种方法(强烈推荐) 方法:selector做遮罩,原图做background. 我们做按钮的时候经常需要用两个图片来实现按钮点击和普通状态的样式,这就需要提供两种图片,而且每个分辨率下还有多套图片 ...

  7. jtyhon 介绍

    Jython是Python的纯Java实现.她无缝地结合了Java类与Python,使用户能以Python语言的语法编写在Java虚拟机上运行的 软件.它的特点有:与相似的Java程序相比,Jytho ...

  8. 【BZOJ1207】【HNOI2004】打鼹鼠(动态规划)

    [BZOJ1207][HNOI2004]打鼹鼠 题面 BZOJ题面 题解 考虑到m的范围只有10000 O(m^2)的复杂度是可以接受的 所以直接暴力DP 每次枚举前面出现的鼹鼠 检查是否能够转移过来 ...

  9. springboot dubbo filter之依赖注入null

    @Autowiredprivate ICallerRepository callerRepository;...用dubbo提供的ServiceBean即可获取bean,因为该类已经实现了Applic ...

  10. .net framework 4.5 +steeltoe+ springcloud 实现服务注册功能

    首先得先了解并熟悉一下springcloud,并手动去搭建一个服务中心,具体可度娘教程. 如果是.net core的话,实现注册也是没有问题的,网上教程很多,可自行度娘. 最难的就是基于Framewo ...