From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F86C1F4.4080809@redhat.com> Date: Thu, 12 Apr 2012 12:52:20 +0100 From: "Bryn M. Reeves" MIME-Version: 1.0 References: <1875424017.355888.1334230891233.JavaMail.root@nelson.canoo.com> In-Reply-To: <1875424017.355888.1334230891233.JavaMail.root@nelson.canoo.com> Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] Hide volume group during startup Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: LVM general discussion and development Cc: Erik Schwalbe On 04/12/2012 12:41 PM, Erik Schwalbe wrote: > Hi, > > filter was: > > filter = [ "r|/dev/data/kvm_disk0|" ] > > path: > /dev/data/kvm_disk0 -> ../mapper/data-kvm_disk0 To filter a device-mapper device you also have to filter out the /dev/dm-N device nodes that udev manages. There's also a symlink from /dev/$VG_NAME/$LV_NAME to the dm-N node (although I think that should be handled by filtering /dev/dm-N). I'd be using something like: [ "r|/dev/dm.*|", "r|/dev/$VG_NAME|", "a|.*|"] Alternately (and I prefer this for many configurations) you can accept ("a|..|") the device you need for the data VG and reject all other devices ("r|.*|"). > The device name is stable, but what other way of control activation are possible?? Tags but since you're not currently filtering dm-N nodes I would try that first. Regards, Bryn.