解决www2接管不了服务的问题:
[root@www1 ~]# service corosync start
Starting Corosync Cluster Engine (corosync): [ OK ]
[root@www1 ~]# service httpd status
httpd (pid 5233) is running...

在www2上创建网站:
[root@www2 Server]# echo "www2.gjp.com " >/var/www/html/index.html
一旦www1死掉:
[root@www1 ~]# service corosync stop
Signaling Corosync Cluster Engine (corosync) to terminate: [ OK ]
Waiting for corosync services to unload:....... [ OK ]

能够正常访问:
[root@www2 Server]# service httpd status
httpd (pid 4656) is running...
[root@www2 Server]# crm status
============
Last updated: Thu Oct 25 17:12:16 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 ]
Resource Group: web
webip (ocf::heartbeat:IPaddr): Started www2.gjp.com
webserver (lsb:httpd): Started www2.gjp.com
如果www1恢复了,不能把权利争夺过来!观看如下配置:
[root@www1 ~]# service corosync start
Starting Corosync Cluster Engine (corosync): [ OK ]
[root@www1 ~]# crm status
============
Last updated: Thu Oct 25 17:20:44 2012
Stack: openais
Current DC: www2.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 www2.gjp.com
webserver (lsb:httpd): Started www2.gjp.com

随便刷新都定位到www2上!
除非www2上的corosync服务死掉
[root@www2 Server]# service corosync stop
Signaling Corosync Cluster Engine (corosync) to terminate: [ OK ]
Waiting for corosync services to unload:....... [ OK ]


