免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5370 | 回复: 4
打印 上一主题 下一主题

Heartbeat错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-05-08 11:43 |只看该作者 |倒序浏览
Apr 21 14:05:30 localhost heartbeat: [7682]: info: Starting child client "/usr/local/ha_soft/lib/heartbeat/ipfail" (502,503)
Apr 21 14:05:31 localhost heartbeat: [7682]: info: local resource transition completed.
Apr 21 14:05:31 localhost heartbeat: [7682]: info: Initial resource acquisition complete (T_RESOURCES(us))
Apr 21 14:05:31 localhost heartbeat: [7719]: ERROR: pclose(/usr/local/ha_soft/share/heartbeat/ResourceManager listkeys alan129) exited with return code 1
Apr 21 14:05:31 localhost heartbeat: [7719]: ERROR: [/usr/local/ha_soft/share/heartbeat/ResourceManager listkeys alan129] exited with return code 1
Apr 21 14:05:31 localhost heartbeat: [7719]: info: No local resources [/usr/local/ha_soft/share/heartbeat/ResourceManager listkeys alan129] to acquire.
Apr 21 14:05:31 localhost heartbeat: [7718]: info: Starting "/usr/local/ha_soft/lib/heartbeat/ipfail" as uid 502  gid 503 (pid 771
Apr 21 14:05:31 localhost heartbeat: [7682]: WARN: Managed /usr/local/ha_soft/lib/heartbeat/ipfail process 7718 exited with return code 127.
Apr 21 14:05:31 localhost heartbeat: [7682]: ERROR: Client /usr/local/ha_soft/lib/heartbeat/ipfail "respawning too fast"
Apr 21 14:05:31 localhost heartbeat: [7682]: info: remote resource transition completed.

这个问题怎么解决啊
ha.cf:
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 30
warntime 10
initdead 120
udpport 694
baud    19200
ucast eth1 192.168.87.5
auto_failback on
node    alan129
node    alan130
ping 192.168.88.130
respawn hacluster /usr/local/ha_soft/lib/heartbeat/ipfail

haresources :
alan129 IPaddr::192.168.88.129/24/eth0/ Filesystem::/dev/sda3::/usr/local/apache/htdocs/::ext4 httpd


论坛徽章:
0
2 [报告]
发表于 2012-05-08 15:05 |只看该作者
本帖最后由 南非蚂蚁 于 2012-05-08 15:06 编辑

respawn hacluster /usr/local/ha_soft/lib/heartbeat/ipfail

修改为

respawn root  /usr/local/ha_soft/lib/heartbeat/ipfail

apiauth ipfail gid=root uid=root


试试

论坛徽章:
0
3 [报告]
发表于 2012-05-09 15:03 |只看该作者
Apr 21 15:33:45 localhost heartbeat: [9322]: info: local resource transition completed.
Apr 21 15:33:45 localhost heartbeat: [9322]: info: Initial resource acquisition complete (T_RESOURCES(us))
Apr 21 15:33:45 localhost heartbeat: [9362]: ERROR: pclose(/usr/local/ha_soft/share/heartbeat/ResourceManager listkeys alan129) exited with return code 1
Apr 21 15:33:45 localhost heartbeat: [9362]: ERROR: [/usr/local/ha_soft/share/heartbeat/ResourceManager listkeys alan129] exited with return code 1
Apr 21 15:33:45 localhost heartbeat: [9362]: info: No local resources [/usr/local/ha_soft/share/heartbeat/ResourceManager listkeys alan129] to acquire.
Apr 21 15:33:46 localhost heartbeat: [9322]: info: remote resource transition completed.

报了这个错误,我把一台机子挂起了,可以显示出info: We are dead. :<;但是没有进行资源的迁移。

论坛徽章:
0
4 [报告]
发表于 2012-05-16 14:54 |只看该作者
贴详细的错误日志。

论坛徽章:
0
5 [报告]
发表于 2012-05-16 14:56 |只看该作者
heartbeat一般不建议用,比较麻烦
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP