项目拓扑图:

corosync 具体配置:
1.配置IP setup


2.保证名称你能够相互解析:uname –r 必须相同
[root@www1 ~]# uname -rn
www1.gjp.com 2.6.18-164.el5
www1.gjp.com上的配置:
[root@gjp99 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=www1.gjp.com
[root@gjp99 ~]# hostname www1.gjp.com
[root@gjp99 ~]# hostname
www1.gjp.com
logout登出重新登陆即可!
3.保证系统时钟一致
[root@www1 ~]# hwclock -s
[root@www1 ~]# clock
Tue 23 Oct 2012 05:20:36 PM CST -0.017990 seconds
4.修改hosts(代替dns)
[root@www1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.2.1 www1.gjp.com www1
192.168.2.2 www2.gjp.com www2
[root@www1 ~]# ping www2.gjp.com
PING www2.gjp.com (192.168.2.2) 56(84) bytes of data.
64 bytes from www2.gjp.com (192.168.2.2): icmp_seq=1 ttl=64 time=3.45 ms
64 bytes from www2.gjp.com (192.168.2.2): icmp_seq=2 ttl=64 time=0.658 ms
名称已经能够相互解析!
