基本条件三台主机

10.37.129.5 web1.xzdz.hk web1
10.37.129.6 web2.xzdz.hk web2
10.37.129.4 luci.xzdz.hk luci

其中luci机器模拟共享ip SAN web1.web2同时挂载(参考http://www.xzdz.hk/?p=901)
10.37.129.4配置

yum -y install luci httpd
/etc/init.d/luci start ( 提示 如何访问luci服务 https://x.x.x.x:8084)
/etc/init.d/httpd start
chkconfig httpd on
chkconfig luci on

10.37.129.5 web1.xzdz.hk web1
10.37.129.6 web2.xzdz.hk web2

yum -y install ricci cman rgmanager
/etc/init.d/ricci start ; chkconfig ricci on
grep ricci /etc/passwd
echo 123456 | passwd --stdin ricci

登录:https://10.37.129.4:8084/
进入图界面

在设备运行良好的情况下web1、web2

/etc/init.d/cman status
/etc/init.d/rgmanager status

在cman启动报错时,一般有两种情况,一时没有/etc/cluster/cluster.conf文件,二是NetworkManager服务开机启动了。

[root@localhost ~]# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="3" name="web">
<clusternodes>
<clusternode name="web1.xzdz.hk" nodeid="1"/>
<clusternode name="web2.xzdz.hk" nodeid="2"/>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
</cluster>
[root@localhost ~]#
05-11 20:15