免费注册 查看新帖 |

Chinaunix

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

heartbeat: 切换后自动停止? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-02 16:34 |只看该作者 |倒序浏览
各位, 我用的是heartbeat2.x版本测试.
在直接切断Master Node(Linux6)的电源后, Slavenode(Linux7)能够接管服务.但是约15分钟后,自动停止.(此期间Linux6一直没有开启).日志显示如下:
切换过程
  1. heartbeat[32178]:
  2. 2007/08/02_15:08:14 WARN: node linux6: is dead

  3. heartbeat[32178]: 2007/08/02_15:08:14 WARN: No STONITH device configured.

  4. heartbeat[32178]: 2007/08/02_15:08:14 WARN: Shared disks are not protected.

  5. heartbeat[32178]: 2007/08/02_15:08:14 info: Resources being acquired from linux6.

  6. harc[1477]:     2007/08/02_15:08:14 info: Running /etc/ha.d/rc.d/status status

  7. heartbeat[1478]: 2007/08/02_15:08:14 info: No local resources [/usr/lib64/heartbeat/ResourceManager listkeys linux7] to acquire.

  8. heartbeat[1478]: 2007/08/02_15:08:14 info: FIFO message [type resource] written rc=108

  9. heartbeat[32178]: 2007/08/02_15:08:14 info: AnnounceTakeover(local 1, foreign 1, reason 'T_RESOURCES(us)' (1))

  10. heartbeat[32178]: 2007/08/02_15:08:14 info: Exiting req_our_resources process 1478 returned rc 0.

  11. heartbeat[32178]: 2007/08/02_15:08:14 info: AnnounceTakeover(local 1, foreign 1, reason 'req_our_resources' (1))

  12. mach_down[1492]:      
  13. 2007/08/02_15:08:14 info: Taking over resource group
  14. 172.21.50.188/24/eth0

  15. ResourceManager[1516]:  2007/08/02_15:08:14 info: Acquiring
  16. resource group: linux6 172.21.50.188/24/eth0 drbddisk::r0
  17. ChangeSrcIP::172.21.50.58::32::eth0::0
  18. ChangeSrcIP::172.21.60.190::32::eth0::0
  19. Filesystem::/dev/drbd0::/data0::ext3 cdrecvd cdsendd

  20. IPaddr[1539]:   2007/08/02_15:08:14 INFO:  Resource is stopped

  21. ResourceManager[1516]:  2007/08/02_15:08:14 info: Running /etc/ha.d/resource.d/IPaddr 172.21.50.188/24/eth0 start

  22. IPaddr[1614]:   2007/08/02_15:08:14 INFO: Using calculated netmask for 172.21.50.188: 255.255.255.0

  23. IPaddr[1614]:   2007/08/02_15:08:14 DEBUG: Using calculated broadcast for 172.21.50.188: 172.21.50.255

  24. IPaddr[1614]:   2007/08/02_15:08:14 INFO: eval /sbin/ifconfig
  25. eth0:0 172.21.50.188 netmask 255.255.255.0 broadcast 172.21.50.255

  26. IPaddr[1614]:   2007/08/02_15:08:14 DEBUG: Sending Gratuitous Arp for 172.21.50.188 on eth0:0 [eth0]

  27. IPaddr[1593]:   2007/08/02_15:08:14 INFO:  Success

  28. ResourceManager[1516]:  2007/08/02_15:08:14 info: Running /etc/ha.d/resource.d/drbddisk r0 start

  29. ChangeSrcIP[1735]:      2007/08/02_15:08:15 INFO:  Resource is stopped

  30. ResourceManager[1516]:  2007/08/02_15:08:15
  31. info: Running /etc/ha.d/resource.d/ChangeSrcIP 172.21.50.58 32 eth0 0
  32. start

  33. ChangeSrcIP[1735]:      2007/08/02_15:08:15 INFO:  Resource is stopped

  34. ResourceManager[1516]:  2007/08/02_15:08:15
  35. info: Running /etc/ha.d/resource.d/ChangeSrcIP 172.21.50.58 32 eth0 0
  36. start

  37. ChangeSrcIP[1777]:      2007/08/02_15:08:15 INFO: Running start for managing routes.

  38. ChangeSrcIP[1774]:      2007/08/02_15:08:15 INFO:  Success

  39. ChangeSrcIP[1812]:      2007/08/02_15:08:15 INFO:  Resource is stopped

  40. ResourceManager[1516]:  2007/08/02_15:08:15
  41. info: Running /etc/ha.d/resource.d/ChangeSrcIP 172.21.60.190 32 eth0 0
  42. start

  43. ChangeSrcIP[1856]:      2007/08/02_15:08:15 INFO: Running start for managing routes.

  44. ChangeSrcIP[1853]:      2007/08/02_15:08:15 INFO:  Success

  45. Filesystem[1895]:       2007/08/02_15:08:15 INFO:  Resource is stopped

  46. ResourceManager[1516]:  2007/08/02_15:08:15 info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd0 /data0 ext3 start

  47. Filesystem[1933]:       2007/08/02_15:08:15 INFO: Running start for /dev/drbd0 on /data0

  48. Filesystem[1930]:       2007/08/02_15:08:21 INFO:  Success

  49. ResourceManager[1516]:  2007/08/02_15:08:21 info: Running /etc/ha.d/resource.d/cdrecvd  start

  50. ResourceManager[1516]:  2007/08/02_15:08:21 info: Running /etc/ha.d/resource.d/cdsendd  start

  51. mach_down[1492]:      
  52. 2007/08/02_15:08:22 info: /usr/lib64/heartbeat/mach_down:
  53. nice_failback: foreign resources acquired

  54. mach_down[1492]:      
  55. 2007/08/02_15:08:22 info: mach_down takeover complete for node linux6.

  56. heartbeat[32178]: 2007/08/02_15:08:22 info: AnnounceTakeover(local 1, foreign 1, reason 'T_RESOURCES(us)' (1))

  57. heartbeat[32178]: 2007/08/02_15:08:22 info: mach_down takeover complete.

  58. heartbeat[32178]: 2007/08/02_15:08:22 info: AnnounceTakeover(local 1, foreign 1, reason 'mach_down' (1))

  59. heartbeat[32178]: 2007/08/02_15:08:22 info: Exiting status process 1477 returned rc 0.

  60. heartbeat[32178]: 2007/08/02_15:08:35 info: Link linux6:eth1 dead.

  61. heartbeat[32178]:
  62. 2007/08/02_15:08:35 info: Link linux6:eth2
  63. dead.
复制代码



开始报错

  1. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot
  2. write to media pipe 0: Resource temporarily unavailable

  3. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  4. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot write to media pipe 0: Resource temporarily unavailable

  5. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  6. heartbeat[32178]: 2007/08/02_15:23:55 info: hb_giveup_resources(): current status: active

  7. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot write to media pipe 0: Resource temporarily unavailable

  8. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  9. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot write to media pipe 1: Resource temporarily unavailable

  10. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  11. heartbeat[32178]: 2007/08/02_15:23:55 info: Heartbeat shutdown in progress. (32178)

  12. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot write to media pipe 1: Resource temporarily unavailable

  13. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  14. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot write to media pipe 0: Resource temporarily unavailable

  15. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  16. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Cannot write to media pipe 1: Resource temporarily unavailable

  17. heartbeat[32178]: 2007/08/02_15:23:55 ERROR: Shutting down.

  18. heartbeat[2294]: 2007/08/02_15:23:55 info: Giving up all HA resources
复制代码


高手分析一下,可能是什么原因

[ 本帖最后由 superline007 于 2007-8-2 16:49 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-09-06 17:55 |只看该作者
应该是串口原因导致.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP