亲!你是不是还为cman启动不了而伤神?是不是启动的时候会报以下错?不妨往下看看是不是你忽略了什么东东!
cman not started: Can't find local node name in cluster.conf /usr/sbin/cman_tool: aisexec daemon didn't start
- yum install cman remanager
- service cman stop
- mv /etc/cluster/cluster.conf /etc/cluster/cluster.conf.bak
- ccs_tool create mycluster
- cat /etc/cluster/cluster.conf
- <?xml version="1.0"?>
- <cluster name="mycluster" config_version="5">
- ccs_tool addfence myfence
- <fencedevices><fencedevice name="myfence" agent="fence_manual"/></fencedevices>
- ccs_tool addnode -v 1 -n 1 -f myfence real1.magedu.com
- ccs_tool addnode -v 1 -n 2 -f myfence real2.magedu.com
- ccs_tool addnode -v 1 -n 3 -f myfence real3.magedu.com
- <?xml version="1.0"?>
- <cluster name="mycluster" config_version="5">
- <clusternodes><clusternode name="real1.magedu.com" votes="1" nodeid="1"><fence><method name="single"><device name="man"/></method></fence></clusternode><clusternode name="real2.magedu.com" votes="1" nodeid="2"><fence><method name="single"><device name="man"/></method></fence></clusternode><clusternode name="real3.magedu.com" votes="1" nodeid="3"><fence><method name="single"><device name="man"/></method></fence></clusternode></clusternodes>
- <fencedevices><fencedevice name="myfence" agent="fence_manual"/></fencedevices>
- <rm>
- <failoverdomains/>
- <resources/>
- </rm>
- </cluster>
- scp /etc/cluster/cluster.conf rea2:/etc/cluster
- scp /etc/cluster/cluster.conf rea3:/etc/cluster
- service cman start