On Thu, Sep 23, 2010 at 08:08:47AM -0400, Michael Smith wrote:
> On Thu, 23 Sep 2010, Dejan Muhamedagic wrote:
>
> > On Tue, Sep 07, 2010 at 03:55:26PM -0400, Michael Smith wrote:
> > > From: Xinwei Hu <[email protected]>
> > >
> > > 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.
Yes, I'd really prefer that. It looks like a substantial
semantical change to me. The man page says:
Where part of a logical volume is missing, /dev/ioer-
ror will be substituted, and you could use dmsetup (8) to
set this up to return I/O errors when accessed,
or create it as a large block device of nulls.
Thanks,
Dejan
> > > Signed-off-by: Xinwei Hu <[email protected]>
> > >
> > > ---
> > > 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: [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/