linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Peter Rajnoha <prajnoha@redhat.com>
To: linux-lvm@redhat.com
Cc: sb@plzk.de
Subject: Re: [linux-lvm] auto_activation_volume_list in lvm.conf not honored
Date: Thu, 24 Nov 2016 14:38:23 +0100	[thread overview]
Message-ID: <13f7d82e-0481-0508-cf5b-ec2a46736123@redhat.com> (raw)
In-Reply-To: <kcim.5836db3b.7323.0bc3159117d344ab@ucs.cubewerk.intern>

On 11/24/2016 01:21 PM, Stefan Bauer wrote:
> hi folks, 
> 
> howto avoid pvescan to initialize lvm volume groups on startup (it's for a cluster setup)? auto_activation_volume_list was filled with the remaining VGs we want to setup. Manually it does what it should 
> 
> /sbin/lvm pvescan --config 'activation { auto_activation_volume_list = "vg2" }'  only activates vg2 but keeps vg1 "untouched".
> 
> But on system startup, all VGs are activated. (ubuntu 14.04.5 LTS)
> 
> We also updated the ramdisk and verified, the changes are also in the ramdisks lvm.conf
> 
> However vg1 is also enabled.
> 
> Any help is greatly appreciated.

It's important that all scripts which handle LVM activation at boot are
executed with vgchange -aay that honours the auto_activation_volume_list
(so not "vgchange -ay").

All init scripts and systemd units which upstream LVM2 provides are
executed with "-aay" already.

You mentioned cluster setup - so are your VGs clustered and are you
using clvmd? If that's the case, the clustered VGs are activated either
by clvmd init script/systemd unit or external cluster resource agent
(e.g. pacemaker and clvm ocf file) which calls the vgchange to activate
the clustered VGs - that one needs to use "-aay" too.

-- 
Peter

  reply	other threads:[~2016-11-24 13:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-24 12:21 [linux-lvm] auto_activation_volume_list in lvm.conf not honored Stefan Bauer
2016-11-24 13:38 ` Peter Rajnoha [this message]
2016-11-24 13:55   ` Peter Rajnoha
  -- strict thread matches above, loose matches on Subject: below --
2016-11-24 14:02 Stefan Bauer
2016-11-25  8:48 ` Zdenek Kabelac
2016-11-24 14:20 Stefan Bauer
2016-11-25  9:17 Stefan Bauer
2016-11-25  9:30 ` Zdenek Kabelac
2016-11-28 22:24   ` David Teigland
2016-12-02  7:07 Stefan Bauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13f7d82e-0481-0508-cf5b-ec2a46736123@redhat.com \
    --to=prajnoha@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=sb@plzk.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).