- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
Table of Contents
Cluster.conf
<?xml version="1.0"?> <cluster name="starlab_cluster" config_version="185"> <quorumd interval="1" label="QourumDisk"> <heuristic interval="5" program="/bin/ping -c2 10.0.0.101" tko="30"> </heuristic> </quorumd> <fencedevices> <fencedevice name="man-fence" agent="fence_manual"/> <fencedevice agent="fence_ipmilan" ipaddr="10.0.255.2" login="Mngmt" name="ipminode1" passwd="Born2runILO" delay="5"/> <fencedevice agent="fence_ipmilan" ipaddr="10.0.255.14" login="Mngmt" name="ipminode3" passwd="Born2runILO" lanplus="True" delay="5"/> <fencedevice agent="fence_ipmilan" ipaddr="10.0.255.13" login="Mngmt" name="ipminode2" passwd="Born2runILO" delay="5"/> <fencedevice name="ac_node" agent="fence_netio_230A" ipaddr="10.0.0.25" login="user" passwd="aaabbb" delay="2"/></fencedevices> <clusternodes> <clusternode name="10.0.0.23" votes="1" nodeid="1"> <fence> <method name="ipmi"> <device name="ipminode1"/> </method> <method name="netio"> <device name="ac_node" port="3"/> </method> </fence> </clusternode> <clusternode name="10.0.0.120" votes="1" nodeid="2"> <fence> <method name="ipmi"> <device name="ipminode2"/> </method> <method name="netio"> <device name="ac_node" port="2"/> </method> </fence> </clusternode> <clusternode name="10.0.0.130" votes="1" nodeid="3"> <fence> <method name="ipmi"> <device name="ipminode3"/> </method> <method name="netio"> <device name="ac_node" port="1"/> </method> </fence> </clusternode> </clusternodes> <rm> <failoverdomains/> <resources/> </rm> </cluster>
start_cluster.sh
#!/bin/bash report_err(){ echo "$1" } echo "Starting cluster services..." echo "Starting cman" #cman_tool -wt10 join || report_err 'unable to join cluster' service cman start || report_err 'unable to join cluster' sleep 10 echo "Starting clvm" service clvm start || report_err 'unable to start clvm' sleep 5 echo "Starting gfs2" service gfs2-cluster restart service gfs2 start || report_err 'unable to start gfs2' mount /dev/shared_vg/configurations /shared || report_err 'unable to mount /shared' echo "Cluster succesfully started!"
stop_cluster.sh
#!/bin/bash report_err(){ echo "$1" } echo "Stopping cluster..." service rgmanager stop || report_err 'rgmanager stopping failed' echo "rgmanager stopped!" service gfs2 stop || report_err 'gfs2 stopping failed' echo "gfs2 stopped!" sleep 2 service clvm stop || report_err 'clvm stopping failed' echo "CLVM stopped!" sleep 5 killall fenced cman_tool -wt10 leave remove || report_err 'leaving cluster failed' service cman stop leave || report_err 'cman stopping failed'
linux/cluster.txt · Last modified: 2015/12/07 16:16 by vondra