From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 12 Apr 2012 16:50:02 +0200 (CEST) From: Erik Schwalbe Message-ID: <245186210.362567.1334242202575.JavaMail.root@nelson.canoo.com> In-Reply-To: <4F86E6F8.3010101@redhat.com> MIME-Version: 1.0 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: "Bryn M. Reeves" Cc: LVM general discussion and development Thank you very much for your help. Regards, Erik ----- Original Message ----- From: "Bryn M. Reeves" To: "Erik Schwalbe" Cc: "LVM general discussion and development" Sent: Thursday, 12 April, 2012 4:30:16 PM Subject: Re: [linux-lvm] Hide volume group during startup On 04/12/2012 03:14 PM, Erik Schwalbe wrote: > Ok, I found a solution: > > I deactivate the VG kvm_disk0 with vgchange -an kvm_disk0, after that I set the filter: > > filter = [ "r|/dev/mapper/data-kvm_disk0|", "r|/dev/kvm_disk0|"] > > without "a|.*|" !!!! Shouldn't make any difference. The filter line has an implicit "a|.*|" at the end. From the lvm.conf man page: "Devices that don't match any patterns are accepted." > Is my filter correct?? If it works for you then that's the main thing. Just be aware that it will need adjustment if you add any more LVs that need to be treated this way (that's why I prefer to accept the PVs I need and reject everything else with a final "r|.*|"). Regards, Bryn.