免费注册 查看新帖 |

Chinaunix

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

令人撞墙的"respawning too fast"出错问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-14 16:32 |只看该作者 |倒序浏览
    这个问题困扰了我好几天,在lfs系统上安装ha2的时候,respawn的插件每一个能正常启动的,NND,google都搜了底朝天,也没有给出答案,今天终于发现原来是权限的问题。用heartbeat的用户启动不了插件,如ipfail,ccm,crm等。在ha.cf中不要按照上面建议的网上大多数人给出的配置,很简单,因为他们给出的成功做法未必适合自己的系统。
   将ha.cf中的
respawn hacluster /usr/lib/heartbeat/ipfail;
apiauth ipfail gid=haclient uid=hacluster
   改为
respawn root /usr/lib/heartbeat/ipfail;
apiauth ipfail gid=root uid=root
就可以了,ipfail进程可以启动了,而且再也不会出现下面的令人郁闷的错误信息了。
    附带的/var/log/ha-log报错信息。
heartbeat[12135]: 2007/12/14_08:15:55 info: Configuration validated. Starting heartbeat 2.0.2
heartbeat[12135]: 2007/12/14_08:15:55 info: heartbeat: version 2.0.2
heartbeat[12135]: 2007/12/14_08:15:55 info: Heartbeat generation: 1186736578
heartbeat[12135]: 2007/12/14_08:15:55 info: Removing /var/run/heartbeat/rsctmp failed, recreating.
heartbeat[12135]: 2007/12/14_08:15:55 info: glib: UDP Broadcast heartbeat started on port 694 (694) interface eth1
heartbeat[12135]: 2007/12/14_08:15:55 info: glib: ucast: write socket priority set to IPTOS_LOWDELAY on eth1
heartbeat[12135]: 2007/12/14_08:15:55 info: glib: ucast: bound send socket to device: eth1
heartbeat[12135]: 2007/12/14_08:15:55 info: glib: ucast: bound receive socket to device: eth1
heartbeat[12135]: 2007/12/14_08:15:55 info: glib: ucast: started on port 694 interface eth1 to 192.168.0.2
heartbeat[12135]: 2007/12/14_08:15:55 info: glib: ping heartbeat started.
heartbeat[12135]: 2007/12/14_08:15:55 notice: Using watchdog device: /dev/watchdog
heartbeat[12135]: 2007/12/14_08:15:55 info: G_main_add_SignalHandler: Added signal handler for signal 17
heartbeat[12135]: 2007/12/14_08:15:55 info: pid 12135 locked in memory.
heartbeat[12135]: 2007/12/14_08:15:55 info: Local status now set to: 'up'
heartbeat[25958]: 2007/12/14_08:15:56 info: pid 25958 locked in memory.
heartbeat[25959]: 2007/12/14_08:15:56 info: pid 25959 locked in memory.
heartbeat[25964]: 2007/12/14_08:15:56 info: pid 25964 locked in memory.
heartbeat[25963]: 2007/12/14_08:15:56 info: pid 25963 locked in memory.
heartbeat[25960]: 2007/12/14_08:15:56 info: pid 25960 locked in memory.
heartbeat[12135]: 2007/12/14_08:15:56 info: Link 10.152.11.98:10.152.11.98 up.
heartbeat[12135]: 2007/12/14_08:15:56 info: Status update for node 10.152.11.98: status ping
heartbeat[12135]: 2007/12/14_08:15:56 info: Link dc1:eth1 up.
heartbeat[12135]: 2007/12/14_08:15:56 info: Link dc2:eth1 up.
heartbeat[12135]: 2007/12/14_08:15:56 info: Local status now set to: 'active'
heartbeat[12135]: 2007/12/14_08:15:56 info: Starting child client "/usr/lib/heartbeat/ipfail" (694,694)
heartbeat[25970]: 2007/12/14_08:15:56 info: Starting "/usr/lib/heartbeat/ipfail" as uid 694  gid 694 (pid 25970)
heartbeat[12135]: 2007/12/14_08:15:56 info: remote resource transition completed.
heartbeat[25962]: 2007/12/14_08:15:56 info: pid 25962 locked in memory.
heartbeat[12135]: 2007/12/14_08:15:56 info: Initial resource acquisition complete (T_RESOURCES(us))
heartbeat[25961]: 2007/12/14_08:15:56 info: pid 25961 locked in memory.
heartbeat[12135]: 2007/12/14_08:15:56 WARN: Exiting /usr/lib/heartbeat/ipfail process 25970 returned rc 126.
heartbeat[12135]: 2007/12/14_08:15:56 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[12135]: 2007/12/14_08:15:56 info: Starting child client "/usr/lib/heartbeat/ipfail" (694,694)
heartbeat[12135]: 2007/12/14_08:15:57 info: Status update for node dc2: status active
harc[25977]:    2007/12/14_08:15:57 info: Running /etc/ha.d/rc.d/status status
heartbeat[25971]: 2007/12/14_08:15:57 info: Starting "/usr/lib/heartbeat/ipfail" as uid 694  gid 694 (pid 25971)
heartbeat[12135]: 2007/12/14_08:15:57 WARN: Exiting /usr/lib/heartbeat/ipfail process 25971 returned rc 126.
heartbeat[12135]: 2007/12/14_08:15:57 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[12135]: 2007/12/14_08:15:57 info: Starting child client "/usr/lib/heartbeat/ipfail" (694,694)
heartbeat[25987]: 2007/12/14_08:15:58 info: Starting "/usr/lib/heartbeat/ipfail" as uid 694  gid 694 (pid 25987)
heartbeat[12135]: 2007/12/14_08:15:58 WARN: Exiting /usr/lib/heartbeat/ipfail process 25987 returned rc 126.
heartbeat[12135]: 2007/12/14_08:15:58 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[12135]: 2007/12/14_08:15:58 info: Starting child client "/usr/lib/heartbeat/ipfail" (694,694)
heartbeat[25993]: 2007/12/14_08:15:59 info: Starting "/usr/lib/heartbeat/ipfail" as uid 694  gid 694 (pid 25993)
heartbeat[12135]: 2007/12/14_08:15:59 WARN: Exiting /usr/lib/heartbeat/ipfail process 25993 returned rc 126.
heartbeat[12135]: 2007/12/14_08:15:59 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[12135]: 2007/12/14_08:15:59 info: Starting child client "/usr/lib/heartbeat/ipfail" (694,694)
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/39370/showart_442436.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP