From: Xinwei Hu <x...@novell.com>

We prefer to activate the mirrored LV is in the degraded mode,
rather then failing to activate it at all.

Signed-off-by: Xinwei Hu <x...@novell.com>

---
This is in SLES11 since April 20, 2010. It's Xinwei's patch; I'm just
sending it upstream.

Index: resource-agents/heartbeat/LVM
===================================================================
--- resource-agents.orig/heartbeat/LVM  2010-04-06 21:53:31.000000000 +0800
+++ resource-agents/heartbeat/LVM       2010-04-20 14:22:28.000000000 +0800
@@ -201,7 +201,9 @@
        active_mode="ey"
   fi   
 
-  ocf_run vgchange -a $active_mode $1 || return $OCF_ERR_GENERIC
+# Activate the VG in partial.
+# This is needed for mirrored LV
+  ocf_run vgchange -a $active_mode --partial $1 || return $OCF_ERR_GENERIC
 
   if LVM_status $1; then
     : OK Volume $1 activated just fine!
_______________________________________________________
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