[root@localhost ~]# /etc/init.d/luci start Start luci... [ OK ] Point your web browser to https://localhost.localdomain:8084 (or equivalent) to access luci
[root@node1-f30 ~]# cman_tool version -r You have not authenticated to the ricci daemon on node1-f30.example.com Password: You have not authenticated to the ricci daemon on node3-f30.example.com Password: You have not authenticated to the ricci daemon on node2-f30.example.com Password:
Starting cluster: Checking if cluster has been disabled at boot... [ OK ] Checking Network Manager... [ OK ] Global setup... [ OK ] Loading kernel modules... [ OK ] Mounting configfs... [ OK ] Starting cman... [ OK ] Waiting for quorum... [ OK ] Starting fenced... [ OK ] Starting dlm_controld... [ OK ] Tuning DLM kernel config... [ OK ] Starting gfs_controld... [ OK ] Unfencing self... [ OK ] Joining fence domain... [ OK ]
[root@node3-f30 ~]# /etc/init.d/rgmanager start Starting Cluster Service Manager: [ OK ]
[root@node3-f30 ~]# /etc/init.d/modclusterd start Starting Cluster Module - cluster monitor: Setting verbosity level to LogBasic [ OK ]
切换资源到node3节点上去运行,测试节点是否正常:
1 2 3 4 5 6 7 8 9 10 11 12 13
[root@node1-f30 ~]# clusvcadm -r httpd -m node3-f30.example.com Trying to relocate service:httpd to node3-f30.example.com...Success service:httpd is now running on node3-f30.example.com
同步fence_xvm.key:
[root@node1-f30 ~]# scp /etc/cluster/fence_xvm.key 172.25.30.12:/etc/cluster/fence_xvm.key The authenticity of host '172.25.30.12 (172.25.30.12)' can't be established. RSA key fingerprint is cf:7c:26:aa:4f:41:7b:21:5e:09:ce:8a:15:2c:97:32. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '172.25.30.12' (RSA) to the list of known hosts. root@172.25.30.12's password: fence_xvm.key 100% 512 0.5KB/s 00:00
[root@node3 ~]# iscsiadm -m discovery -t st -p 172.25.30.13 Starting iscsid: [ OK ] 172.25.30.13:3260,1 iqn.2008-09.com.example:server.target1
[root@node3 ~]# iscsiadm -m node -l Logging in to [iface: default, target: iqn.2008-09.com.example:server.target1, portal: 172.25.30.13,3260] (multiple) Login to [iface: default, target: iqn.2008-09.com.example:server.target1, portal: 172.25.30.13,3260] successful.
[root@node3 ~]# mkqdisk -c /dev/sda -l myqdisk mkqdisk v3.0.12.1 Writing new quorum disk label 'myqdisk' to /dev/sda. WARNING: About to destroy all data on /dev/sda; proceed [N/y] ? y Warning: Initializing previously initialized partition Initializing status block for node 1... Initializing status block for node 2...