|
|
261ad6 |
From b5ac7d0e49bb3b967c3865438067a95606db959a Mon Sep 17 00:00:00 2001
|
|
|
261ad6 |
From: David Vossel <dvossel@redhat.com>
|
|
|
261ad6 |
Date: Mon, 27 Apr 2015 16:35:03 -0400
|
|
|
261ad6 |
Subject: [PATCH] High: clvm: activate_vgs option for enable/disable of
|
|
|
261ad6 |
automatic vg activation
|
|
|
261ad6 |
|
|
|
261ad6 |
---
|
|
|
261ad6 |
heartbeat/clvm | 18 ++++++++++++++++++
|
|
|
261ad6 |
1 file changed, 18 insertions(+)
|
|
|
261ad6 |
|
|
|
261ad6 |
diff --git a/heartbeat/clvm b/heartbeat/clvm
|
|
|
261ad6 |
index 9d312cc..23e6f9f 100755
|
|
|
261ad6 |
--- a/heartbeat/clvm
|
|
|
261ad6 |
+++ b/heartbeat/clvm
|
|
|
261ad6 |
@@ -60,6 +60,18 @@ Options to clvmd. Refer to clvmd.8 for detailed descriptions.
|
|
|
261ad6 |
<shortdesc lang="en">Daemon Options</shortdesc>
|
|
|
261ad6 |
<content type="string" default="-d0"/>
|
|
|
261ad6 |
</parameter>
|
|
|
261ad6 |
+
|
|
|
261ad6 |
+<parameter name="activate_vgs" unique="0">
|
|
|
261ad6 |
+<longdesc lang="en">
|
|
|
261ad6 |
+Whether or not to activate all cluster volume groups after starting
|
|
|
261ad6 |
+the clvmd or not. Note that clustered volume groups will always be
|
|
|
261ad6 |
+deactivated before the clvmd stops regardless of what this option
|
|
|
261ad6 |
+is set to.
|
|
|
261ad6 |
+</longdesc>
|
|
|
261ad6 |
+<shortdesc lang="en">Activate volume groups</shortdesc>
|
|
|
261ad6 |
+<content type="boolean" default="true"/>
|
|
|
261ad6 |
+</parameter>
|
|
|
261ad6 |
+
|
|
|
261ad6 |
</parameters>
|
|
|
261ad6 |
|
|
|
261ad6 |
<actions>
|
|
|
261ad6 |
@@ -77,6 +89,7 @@ END
|
|
|
261ad6 |
#######################################################################
|
|
|
261ad6 |
|
|
|
261ad6 |
: ${OCF_RESKEY_daemon_options:="-d0"}
|
|
|
261ad6 |
+: ${OCF_RESKEY_activate_vgs:="true"}
|
|
|
261ad6 |
|
|
|
261ad6 |
sbindir=$HA_SBIN_DIR
|
|
|
261ad6 |
if [ -z $sbindir ]; then
|
|
|
261ad6 |
@@ -322,6 +335,11 @@ start_process()
|
|
|
261ad6 |
|
|
|
261ad6 |
clvmd_activate_all()
|
|
|
261ad6 |
{
|
|
|
261ad6 |
+
|
|
|
261ad6 |
+ if ! ocf_is_true "$OCF_RESKEY_activate_vgs"; then
|
|
|
261ad6 |
+ ocf_log info "skipping vg activation, activate_vgs is set to $OCF_RESKEY_activate_vgs"
|
|
|
261ad6 |
+ return $OCF_SUCCESS
|
|
|
261ad6 |
+ fi
|
|
|
261ad6 |
# Activate all volume groups by leaving the
|
|
|
261ad6 |
# "volume group name" parameter empty
|
|
|
261ad6 |
ocf_run ${LVM_VGCHANGE} -aay
|
|
|
261ad6 |
--
|
|
|
261ad6 |
1.8.4.2
|
|
|
261ad6 |
|