Accepting request 196481 from home:goldwynr:branches:network:ha-clustering:Factory

cluster_stack setup in o2cb

OBS-URL: https://build.opensuse.org/request/show/196481
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=65
This commit is contained in:
2013-08-26 19:46:55 +00:00
committed by Git OBS Bridge
parent ab40e465fc
commit 6f2583e888
3 changed files with 17 additions and 3 deletions

View File

@@ -35,6 +35,11 @@
: ${OCF_RESKEY_CRM_meta_gloablly_unique:="false"}
o2cb_start() {
/sbin/modprobe ocfs2_stackglue
/sbin/modprobe ocfs2_stack_user
/sbin/modprobe ocfs2
echo "pcmk" > /sys/fs/ocfs2/cluster_stack
ocf_log info "o2cb is now obsolete. Please remove the o2cb resource agent in your next maintenance window!"
return $OCF_SUCCESS
}
@@ -49,6 +54,10 @@ o2cb_usage() {
return $OCF_SUCCESS
}
o2cb_monitor() {
return $OCF_SUCCESS
}
meta_data() {
cat <<END
<?xml version="1.0"?>
@@ -62,6 +71,9 @@ This is a o2cb Resource Agent. This is now obsolete!
<parameters>
</parameters>
<actions>
<action name="start" timeout="90" />
<action name="stop" timeout="100" />
<action name="monitor" timeout="20" depth="0"/>
</actions>
</resource-agent>
END
@@ -75,6 +87,8 @@ start) o2cb_start
;;
stop) o2cb_stop
;;
monitor) o2cb_monitor
;;
usage|help) o2cb_usage
exit $OCF_SUCCESS
;;