免费注册 查看新帖 |

Chinaunix

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

关于heartbeat中take over的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-08 20:27 |只看该作者 |倒序浏览
我有A(192.168.1.14)和B(192.168.1.15)两台机器,
我在A、B上面都装了heartbeat软件,vip 是 192.168.1.20,2台机器来提供httpd服务的heartbeat.

现在的问题是:
当我在A机器上面用service network stop命令停掉A机器上的网络服务后,B机器能接管过来,httpd服务(192.168.1.20)还能正常访问。

不过当我重起A机器的时候vip 192.168.1.20都ping不通了,更别说httpd服务还能正常访问了。
请问这是正常的现象吗?

论坛徽章:
0
2 [报告]
发表于 2009-04-08 22:27 |只看该作者
不正常。
把你配置文件贴出来我看看。

论坛徽章:
0
3 [报告]
发表于 2009-04-09 11:15 |只看该作者
原帖由 yueliangdao0608 于 2009-4-8 22:27 发表
不正常。
把你配置文件贴出来我看看。



两台机器的配置文件如下: ip地址有些出入.麻烦帮我看下。
[root@test145 ha.d]# cat ha.cf  | grep -v '^#'
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 1
deadtime 30
warntime 5
initdead 120
udpport  28855
bcast   eth0            # Linux
ucast eth0 10.8.1.145
auto_failback on
watchdog /dev/watchdog
node    test145
node    test146


[root@test145 ha.d]# cat haresources | grep -v '^#'
test145  10.8.1.155  httpd


[root@test145 ha.d]# cat authkeys | grep -v '^#'           
auth 3
1 crc
3 md5 Hello!


====


[root@test146 ha.d]# cat ha.cf  | grep -v '^#'
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 1
deadtime 30
warntime 5
initdead 120
udpport 28855
bcast   eth0            # Linux
ucast eth0 10.8.1.146
auto_failback on
watchdog /dev/watchdog
node    test145
node    test146


[root@test146 ha.d]# cat haresources | grep -v '^#'
test146  10.8.1.155  httpd



[root@test146 ha.d]# cat authkeys | grep -v '^#'  
auth 3
1 crc
3 md5 Hello!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP