From: David W Noon <dwnoon@ntlworld.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] LVM filter question
Date: Fri, 1 Jul 2011 21:38:03 +0100 [thread overview]
Message-ID: <20110701213803.211a912f@karnak.local> (raw)
In-Reply-To: <2221552.SqJE6SpXT6@weird>
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
On Fri, 01 Jul 2011 22:05:12 +0200, Alex Schuster wrote about
[gentoo-user] LVM filter question:
[snip]
> filter = [ "r|/dev/nbd.*|", "r|/dev/sdd|", "a/.*/" ]
>
> This should reject /dev/sdd from scanning. But it doesn't, pvscan
> spins it up. Any idea why it is not being ignored?
The regular expression that precedes the one involving /dev/sdd
provides a clue: it would appear that LVM wraps the r.e. with ^ and $
so that it completes a string.
So, your r.e. should read:
r|/dev/sdd.*|
which decodes to "reject ^/dev/sdd.*$ ".
This suppresses the scans of /dev/sdd1, /dev/sdd2, etc.
Now, you might not have any partitions on /dev/sdd, but LVM cannot
readily know that without reading the partition table, which spins up
the drive. I guess LVM doesn't trust or, at least, depend upon udev
to supply the partition details.
--
Regards,
Dave [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-07-01 20:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 20:05 [gentoo-user] LVM filter question Alex Schuster
2011-07-01 20:38 ` David W Noon [this message]
2011-07-02 12:19 ` Alex Schuster
2011-07-02 13:05 ` David W Noon
2011-07-04 13:59 ` Alex Schuster
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=20110701213803.211a912f@karnak.local \
--to=dwnoon@ntlworld.com \
--cc=gentoo-user@lists.gentoo.org \
/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