File 0001-LVM-Default-partial_activation-to-true-in-SLE-HAE.patch of Package resource-agents
From 566778b8bdf3461d6c449cc1c1ef0239485afc84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Thu, 18 May 2017 00:16:59 +0200
Subject: [PATCH 1/6] LVM: Default partial_activation to true in SLE HAE
---
heartbeat/LVM | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/heartbeat/LVM b/heartbeat/LVM
index 5b265f58..a5fa463f 100755
--- a/heartbeat/LVM
+++ b/heartbeat/LVM
@@ -102,10 +102,10 @@ If "exclusive" is set on a non clustered volume group, this overrides the tag to
<longdesc lang="en">
If set, the volume group will be activated partially even with some
physical volumes missing. It helps to set to true when using mirrored
-logical volumes.
+logical volumes. Set to true by default in SLE HAE.
</longdesc>
<shortdesc lang="en">Activate VG partially when missing PVs</shortdesc>
-<content type="string" default="false" />
+<content type="string" default="true" />
</parameter>
<parameter name="check_writethrough" unique="0" required="0">
@@ -378,7 +378,7 @@ get_activate_options()
2) options="${options}ey";;
esac
- if ocf_is_true "$OCF_RESKEY_partial_activation" ; then
+ if ocf_is_true "$PARTIAL_INVOCATION" ; then
options="${options} --partial"
fi
@@ -699,6 +699,7 @@ then
exit $OCF_ERR_INSTALLED
fi
LVM_MAJOR="${LVM_VERSION%%.*}"
+PARTIAL_INVOCATION=${OCF_RESKEY_partial_activation:-"true"}
VOLUME=$OCF_RESKEY_volgrpname
OP_METHOD=$1
--
2.12.2