模拟www1已经死掉:
[root@www1 ~]# service corosync stop
Signaling Corosync Cluster Engine (corosync) to terminate: [ OK ]
Waiting for corosync services to unload:....... [ OK ]
[root@www1 ~]# service httpd status
httpd is stopped
[root@www2 Server]# crm status
============
Last updated: Thu Oct 25 16:43:01 2012
Stack: openais
Current DC: www2.gjp.com - partition WITHOUT quorum
Version: 1.1.5-1.1.el5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f
2 Nodes configured, 2 expected votes
1 Resources configured.
============
Online: [ www2.gjp.com ]
OFFLINE: [ www1.gjp.com ]
Failed actions:
webserver_monitor_0 (node=www2.gjp.com, call=3, rc=5, status=complete): not installed
发现总有这个错误提示:
安装提示在www2上安装http服务,必须重启服务,否则,不能识别到,错误仍在!
[root@www2 Server]# service corosync stop
Signaling Corosync Cluster Engine (corosync) to terminate: [ OK ]
Waiting for corosync services to unload:^[[A.^H..... [ OK ]
[root@www2 Server]# service corosync start
Starting Corosync Cluster Engine (corosync): [ OK ]
[root@www2 Server]# crm status
============
Last updated: Thu Oct 25 16:47:18 2012
Stack: openais
Current DC: www1.gjp.com - partition with quorum
Version: 1.1.5-1.1.el5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f
2 Nodes configured, 2 expected votes
1 Resources configured.
============
Online: [ www1.gjp.com www2.gjp.com ]
Resource Group: web
webip (ocf::heartbeat:IPaddr): Started www1.gjp.com
webserver (lsb:httpd): Started www1.gjp.com
