Gentoo Archives: gentoo-user

From: David W Noon <dwnoon@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM filter question
Date: Fri, 01 Jul 2011 20:39:39
Message-Id: 20110701213803.211a912f@karnak.local
In Reply to: [gentoo-user] LVM filter question by Alex Schuster
1 On Fri, 01 Jul 2011 22:05:12 +0200, Alex Schuster wrote about
2 [gentoo-user] LVM filter question:
3
4 [snip]
5 > filter = [ "r|/dev/nbd.*|", "r|/dev/sdd|", "a/.*/" ]
6 >
7 > This should reject /dev/sdd from scanning. But it doesn't, pvscan
8 > spins it up. Any idea why it is not being ignored?
9
10 The regular expression that precedes the one involving /dev/sdd
11 provides a clue: it would appear that LVM wraps the r.e. with ^ and $
12 so that it completes a string.
13
14 So, your r.e. should read:
15
16 r|/dev/sdd.*|
17
18 which decodes to "reject ^/dev/sdd.*$ ".
19
20 This suppresses the scans of /dev/sdd1, /dev/sdd2, etc.
21
22 Now, you might not have any partitions on /dev/sdd, but LVM cannot
23 readily know that without reading the partition table, which spins up
24 the drive. I guess LVM doesn't trust or, at least, depend upon udev
25 to supply the partition details.
26 --
27 Regards,
28
29 Dave [RLU #314465]
30 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
31 dwnoon@××××××××.com (David W Noon)
32 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] LVM filter question Alex Schuster <wonko@×××××××××.org>