From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pobox.fab.redhat.com (pobox.fab.redhat.com [10.33.63.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mACIF46B032145 for ; Wed, 12 Nov 2008 13:15:05 -0500 Received: from breeves.fab.redhat.com (breeves.fab.redhat.com [10.33.0.40]) by pobox.fab.redhat.com (8.13.1/8.13.1) with ESMTP id mACIF4dS014406 for ; Wed, 12 Nov 2008 13:15:04 -0500 Message-ID: <491B1C9D.3090401@redhat.com> Date: Wed, 12 Nov 2008 18:12:45 +0000 From: "Bryn M. Reeves" MIME-Version: 1.0 Subject: Re: [linux-lvm] device filter in lvm.conf References: In-Reply-To: Content-Transfer-Encoding: 7bit Reply-To: bmr@redhat.com, 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"; format="flowed" To: LVM general discussion and development Tuncel.Mutlu@akbank.com wrote: > filter = [ "a/sda[1-9]$/" "a/sddlm*/" "r/.*/" ] > > and types row has been added > > types = [ "sddlmfdrv", 16 ] > > This has been known to work on another Linux box, but not here. How must I > alter the filter so the LVM should accept sda and sddlm devices but reject > all others ? When you say it doesn't work on this box, what actually happens? Do you fail to filter out the individual paths, or do you fail to include the multipath device that you want to use? You may find that removing the cache (/etc/lvm/cache/.cache) after editing the filters straightens things out (this should be automatic but I've found that on some releases I've needed to manually remove it). Also, is the filter really what you wanted? > filter = [ "a/sda[1-9]$/" "a/sddlm*/" "r/.*/" ] ^^^^^^^^ This says to accept devices that have a string "sddl" followed by any zero or more "m" characters. I don't know the naming scheme for HDLM, but your example implies that they'd follow a pattern of sddlm[a-z][a-z], or something. Perhaps "a/sddlm.*/" would work better (sddlm followed by any number of any character), since you're unlikely to have other device nodes with a prefix of sddlm. You could tighten that up further as: "a|/dev/sddlm.*|" if you liked (lvm filter expressions work like sed - you can uniformly replace the '//' delimiters with other chars - I like pipes as it means you need less \/ escaping when using paths). Regards, Bryn.