- 論壇徽章:
- 0
|
本帖最后由 heidern 于 2010-02-25 15:41 編輯
兩臺(tái)VMware服務(wù)器:
1、Centos-1 192.168.48.10
2、Centos-2 192.168.48.20
drbd配置沒(méi)問(wèn)題,heartbeat配置好以后隨便手動(dòng)關(guān)閉某一臺(tái)的heartbeat都可以切換到對(duì)方,但今天在Centos-1上做如下實(shí)驗(yàn):
[root@Centos-1 ~]# iptables -A INPUT -j DROP
本以為Centos-2偵測(cè)不到Centos-1的心跳會(huì)將自己提升為Active,但結(jié)果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也出現(xiàn)了問(wèn)題:當(dāng)iptables規(guī)則生效后,Centos-2上的DRBD狀態(tài)是:
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
也就是說(shuō)看不到Centos-2的狀態(tài)了(這個(gè)應(yīng)該沒(méi)有問(wèn)題)
把Centos-1的iptables去掉后,狀態(tài)沒(méi)有恢復(fù),重啟兩臺(tái)機(jī)器的DRBD和heartbeat后,兩臺(tái)機(jī)器的DRBD狀態(tài)都變成了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
這到底是為什么呢?怎么解決?高手指點(diǎn)下,謝謝!
附配置文件(兩臺(tái)都一樣)
[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 |
|