File lvm-vg-partial-active.diff of Package resource-agents
diff -r c0d8e6bb946e heartbeat/LVM
--- a/heartbeat/LVM Tue Dec 07 17:31:53 2010 +0100
+++ b/heartbeat/LVM Mon Dec 13 12:34:36 2010 +0100
@@ -85,10 +85,10 @@ If set, the volume group will be activat
<longdesc lang="en">
If set, the volume group will be activated even only partial of the physical
volumes available. It helps to set to true, when you are using mirroring
-logical volumes.
+logical volumes. Set to true by default in SLE11SP1 HAE and openSUSE.
</longdesc>
<shortdesc lang="en">Activate VG even with partial PV only</shortdesc>
-<content type="string" default="false" />
+<content type="string" default="true" />
</parameter>
</parameters>
@@ -224,7 +224,7 @@ LVM_start() {
fi
vgchange_options="-a $active_mode"
- if ocf_is_true "$OCF_RESKEY_partial_activation" ; then
+ if ocf_is_true "$PARTIAL_INVOCATION" ; then
vgchange_options="$vgchange_options --partial"
fi
@@ -357,6 +357,7 @@ then
fi
LVM_MAJOR="${LVM_VERSION%%.*}"
+PARTIAL_INVOCATION=${OCF_RESKEY_partial_activation:-"true"}
VOLUME=$OCF_RESKEY_volgrpname
OP_METHOD=$1
# What kind of method was invoked?