- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:cluster [2015/12/07 16:15] vondra |
linux:cluster [2015/12/07 16:16] (current) vondra |
||
---|---|---|---|
Line 78: | Line 78: | ||
echo "Cluster succesfully started!" | echo "Cluster succesfully started!" | ||
+ | </code> | ||
+ | ====== stop_cluster.sh ====== | ||
+ | <code bash> | ||
+ | #!/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' | ||
</code> | </code> | ||
linux/cluster.1449501302.txt.gz · Last modified: 2015/12/07 16:15 by vondra