- 论坛徽章:
- 0
|
本帖最后由 heidern 于 2010-02-25 15:41 编辑
两台VMware服务器:
1、Centos-1 192.168.48.10
2、Centos-2 192.168.48.20
drbd配置没问题,heartbeat配置好以后随便手动关闭某一台的heartbeat都可以切换到对方,但今天在Centos-1上做如下实验:
[root@Centos-1 ~]# iptables -A INPUT -j DROP
本以为Centos-2侦测不到Centos-1的心跳会将自己提升为Active,但结果Centos-02的日志出乎意料:
heartbeat[11228]: 2010/02/25_11:51:47 ERROR: Both machines own our resources!
heartbeat[11228]: 2010/02/25_11:51:47 ERROR: Both machines own our resources!
heartbeat[11228]: 2010/02/25_11:59:52 info: all clients are now paused
heartbeat[11228]: 2010/02/25_12:03:58 WARN: Message hist queue is filling up (376 messages in queue)
heartbeat[11228]: 2010/02/25_12:04:00 WARN: Message hist queue is filling up (377 messages in queue)
heartbeat[11228]: 2010/02/25_12:04:02 WARN: Message hist queue is filling up (378 messages in queue)
而且DRBD也出现了问题:当iptables规则生效后,Centos-2上的DRBD状态是:
version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by mockbuild@v20z-x86-64.home.local, 2009-08-29 14:07:55
1: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown r----
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4
也就是说看不到Centos-2的状态了(这个应该没有问题)
把Centos-1的iptables去掉后,状态没有恢复,重启两台机器的DRBD和heartbeat后,两台机器的DRBD状态都变成了version: 8.3.2 (api:88/proto:86-90)
GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by mockbuild@v20z-x86-64.home.local, 2009-08-29 14:07:55
1: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown r----
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4
这到底是为什么呢?怎么解决啊?高手指点下,谢谢!
附配置文件(两台都一样)
[root@Centos-2 resource.d]# cat /etc/ha.d/ha.cf|grep -v \#
logfile /var/log/ha-log
keepalive 2
deadtime 10
warntime 5
udpport 694
auto_failback on
node Centos-1 Centos-2
[root@Centos-2 resource.d]# cat /etc/ha.d/haresources|grep -v \#
Centos-1 192.168.48.60 drbddisk::r0 Filesystem::/dev/drbd1::/mnt/drbd1::ext3 |
|