Hi, On Tue, Sep 07, 2010 at 03:55:26PM -0400, Michael Smith wrote: > 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.
What are the possible consequences of using --partial to activate a volume group? Please note that it is supposed to work correctly for non-mirrored volumes too. Which means that as soon as the LVM exits, the volume has to be fully functional. Thanks, Dejan > 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/ _______________________________________________________ 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/