On Thu, 23 Sep 2010, Dejan Muhamedagic wrote: > 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?
As I understand it, --partial will allow a mirrored volume group to be activated if some of the mirror drives are missing. It will also allow a group to be activated in read-only mode if drives (and data) are missing. So perhaps this --partial should be conditional on a parameter. > > 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/