---
 heartbeat/LVM |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/heartbeat/LVM b/heartbeat/LVM
index 683d4d5..d8ad3ca 100755
--- a/heartbeat/LVM
+++ b/heartbeat/LVM
@@ -201,6 +201,8 @@ LVM_monitor() {
 #      Enable LVM volume
 #
 LVM_start() {
+  local vgchange_options
+  local active_mode
 
   # TODO: This MUST run vgimport as well
 
@@ -215,13 +217,14 @@ LVM_start() {
   active_mode="ly"
   if ocf_is_true "$OCF_RESKEY_exclusive" ; then
        active_mode="ey"
-  fi   
-  partial_active=""
+  fi
+  vgchange_options="-a $active_mode"
+
   if ocf_is_true "$OCF_RESKEY_partial_activation" ; then
-       partial_active="--partial"
+       vgchange_options="$vgchange_options --partial"
   fi
 
-  ocf_run vgchange -a $active_mode $partial_active $1 || return 
$OCF_ERR_GENERIC
+  ocf_run vgchange $vgchange_options $1 || return $OCF_ERR_GENERIC
 
   if LVM_status $1; then
     : OK Volume $1 activated just fine!
-- 
1.7.5.4

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to