兩台虛擬機做RHCS集群出錯
架構: 虛擬機A 在physical-A 上, 虛擬機B在physical-B上。
想為A和B 做一個集群 。 不知道兩台虛擬機做集群是否可行。
B為A的失效域中成員。
A和B的配置文件為:
<?xml version="1.0"?>
<cluster alias="apache-cluster" config_version="5" name="apache-cluster">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="physical2-virt1.sys.com" nodeid="1" votes="1">
<fence/>
</clusternode>
<clusternode name="physical1-virt1.sys.com" nodeid="2" votes="1">
<fence/>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices/>
<rm>
<failoverdomains>
<failoverdomain name="prefer_physical1-virt1" nofailback="0" ordered="1" restricted="0">
<failoverdomainnode name="physical2-virt1.sys.com" priority="10"/>
<failoverdomainnode name="physical1-virt1.sys.com" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.1.210" monitor_link="1"/>
<script file="/etc/rc.d/init.d/httpd" name="web"/>
</resources>
<service autostart="1" domain="prefer_physical1-virt1" exclusive="0" name="apache" recovery="relocate">
<ip ref="192.168.1.210">
<script ref="web"/>
</ip>
</service>
</rm>
</cluster>
配置完后,當重啟A機器后,B機器可以正常的接管A上面的服務,
可是當A重啟卻起不來cman服務:
Starting cluster:
Loading modules... DLM (built Apr 29 2008 13:46:34) installed
GFS2 Overlay (built Apr 30 2008 17:30:59) installed
done
Mounting configfs... done
Starting ccsd... done
Starting cman... failed
Timed-out waiting for cluster
從而無法在啟動后或者B失效後接替服務。
報錯信息為:
Sep 25 12:48:49 physical1-virt1 ccsd: Remote copy of cluster.conf is from quorate node.
Sep 25 12:48:49 physical1-virt1 ccsd: Local version # : 5
Sep 25 12:48:49 physical1-virt1 ccsd: Remote version #: 5
Sep 25 12:48:50 physical1-virt1 ccsd: Remote copy of cluster.conf is from quorate node.
Sep 25 12:48:50 physical1-virt1 ccsd: Local version # : 5
Sep 25 12:48:50 physical1-virt1 ccsd: Remote version #: 5
Sep 25 12:48:50 physical1-virt1 ccsd: Remote copy of cluster.conf is from quorate node.
Sep 25 12:48:50 physical1-virt1 ccsd: Local version # : 5
Sep 25 12:48:50 physical1-virt1 ccsd: Remote version #: 5
Sep 25 12:48:50 physical1-virt1 ccsd: Remote copy of cluster.conf is from quorate node.
Sep 25 12:48:50 physical1-virt1 ccsd: Local version # : 5
Sep 25 12:48:50 physical1-virt1 ccsd: Remote version #: 5
Sep 25 12:48:50 physical1-virt1 openais: AIS Executive Service RELEASE 'subrev 1358 version 0.80.3'
Sep 25 12:48:50 physical1-virt1 openais: Copyright (C) 2002-2006 MontaVista Software, Inc and contributors.
Sep 25 12:48:50 physical1-virt1 openais: Copyright (C) 2006 Red Hat, Inc.
Sep 25 12:48:50 physical1-virt1 openais: AIS Executive Service: started and ready to provide service.
Sep 25 12:48:50 physical1-virt1 openais: Using default multicast address of 239.192.51.231
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_cpg loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais cluster closed process group serv
ice v1.01'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_cfg loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais configuration service'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_msg loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais message service B.01.01'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_lck loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais distributed locking service B.01.
01'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_evt loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais event service B.01.01'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_ckpt loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais checkpoint service B.01.01'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_amf loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais availability management framework
B.01.01'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_clm loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais cluster membership service B.01.0
1'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_evs loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais extended virtual synchrony servic
e'
Sep 25 12:48:50 physical1-virt1 openais: openais component openais_cman loaded.
Sep 25 12:48:50 physical1-virt1 openais: Registering service handler 'openais CMAN membership service 2.01'
Sep 25 12:48:51 physical1-virt1 openais: Token Timeout (10000 ms) retransmit timeout (495 ms)
Sep 25 12:48:51 physical1-virt1 openais: token hold (386 ms) retransmits before loss (20 retrans)
Sep 25 12:48:51 physical1-virt1 openais: join (60 ms) send_join (0 ms) consensus (4800 ms) merge (200 ms)
Sep 25 12:48:51 physical1-virt1 openais: downcheck (1000 ms) fail to recv const (50 msgs)
Sep 25 12:48:51 physical1-virt1 openais: seqno unchanged const (30 rotations) Maximum network MTU 1500
Sep 25 12:48:51 physical1-virt1 openais: window size per rotation (50 messages) maximum messages per rotation (
17 messages)
Sep 25 12:48:51 physical1-virt1 openais: send threads (0 threads)
Sep 25 12:48:51 physical1-virt1 openais: RRP token expired timeout (495 ms)
Sep 25 12:48:51 physical1-virt1 openais: RRP token problem counter (2000 ms)
Sep 25 12:48:51 physical1-virt1 openais: RRP threshold (10 problem count)
Sep 25 12:48:51 physical1-virt1 openais: RRP mode set to none.
Sep 25 12:48:51 physical1-virt1 openais: heartbeat_failures_allowed (0)
Sep 25 12:48:51 physical1-virt1 openais: max_network_delay (50 ms)
Sep 25 12:48:51 physical1-virt1 openais: HeartBeat is Disabled. To enable set heartbeat_failures_allowed > 0
Sep 25 12:48:51 physical1-virt1 openais: Receive multicast socket recv buffer size (219136 bytes).
Sep 25 12:48:51 physical1-virt1 openais: Transmit multicast socket send buffer size (219136 bytes).
Sep 25 12:48:51 physical1-virt1 ccsd: Initial status:: Inquorate
Sep 25 12:48:51 physical1-virt1 openais: The network interface is now up.
Sep 25 12:48:51 physical1-virt1 openais: Created or loaded sequence id 2688.192.168.1.203 for this ring.
Sep 25 12:48:51 physical1-virt1 openais: entering GATHER state from 15.
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais extended virtual synchrony servi
ce'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais cluster membership service B.01.
01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais availability management framewor
k B.01.01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais checkpoint service B.01.01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais event service B.01.01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais distributed locking service B.01
.01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais message service B.01.01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais configuration service'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais cluster closed process group ser
vice v1.01'
Sep 25 12:48:51 physical1-virt1 openais: Initialising service handler 'openais CMAN membership service 2.01'
Sep 25 12:48:51 physical1-virt1 openais: CMAN 2.0.84 (built Apr 15 2008 16:19:14) started
Sep 25 12:48:51 physical1-virt1 openais: Not using a virtual synchrony filter.
Sep 25 12:49:05 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:49:05 physical1-virt1 openais: entering GATHER state from 3.
Sep 25 12:49:20 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:49:20 physical1-virt1 openais: entering GATHER state from 3.
Sep 25 12:49:35 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:49:35 physical1-virt1 openais: entering GATHER state from 3.
Sep 25 12:49:50 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:49:50 physical1-virt1 openais: entering GATHER state from 3.
Sep 25 12:50:05 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:50:05 physical1-virt1 openais: entering GATHER state from 3.
Sep 25 12:50:19 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:50:19 physical1-virt1 openais: entering GATHER state from 3.
Sep 25 12:50:34 physical1-virt1 openais: The consensus timeout expired.
Sep 25 12:50:34 physical1-virt1 openais: entering GATHER state from 3.
《解決方案》
看到jerrywjl在別的地方會的貼,知道是哪裡出錯了。嘿嘿
謝謝jerrywjl 了
是我的機器的防火牆忘記關閉了。
這個錯誤很簡單,可是也很容易犯。
《解決方案》
這哥們滿世界貼。。。。。。