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>
@@ -211,9 +211,9 @@ LVM_start() {
   if ocf_is_true "$OCF_RESKEY_exclusive" ; then
   	active_mode="ey"
   fi	
-  partial_active=""
-  if ocf_is_true "$OCF_RESKEY_partial_activation" ; then
-	partial_active="--partial"
+  partial_active="--partial"
+  if ! ocf_is_true "$OCF_RESKEY_partial_activation" ; then
+	partial_active=""
   fi
 
   ocf_run vgchange -a $active_mode $partial_active $1 || return $OCF_ERR_GENERIC
 
openSUSE Build Service is sponsored by