我们模拟node1坏掉的情况,看下www服务是否可以飘到node2的上面
漂移前
[root@node2 ~]# clustat
Cluster Status for cluster1 @ Tue May 8 01:50:19 2012
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node2.a.com 1 Online, Local, rgmanager
node1.a.com 2 Online, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
service:www node1.a.com started
漂移后
[root@node2 ~]# clustat
Cluster Status for cluster1 @ Tue May 8 01:58:54 2012
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node2.a.com 1 Online, Local, rgmanager
node1.a.com 2 Online, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
service:www (node1.a.com) failed
注意:我们无法自动将www服务转移到node2的上面,主要是应为我们的vm fence 不行。