[CentOS] interesting kvm lvm collision issue

Wed Oct 27 22:53:12 UTC 2010
Ross Walker <rswwalker at gmail.com>

On Oct 27, 2010, at 3:02 PM, Iain Morris <iain.t.morris at gmail.com> wrote:

> 
> 
> On Tue, Oct 26, 2010 at 6:48 AM, Ross Walker <rswwalker at gmail.com> wrote:
>  
> You need to exclude the LVs in the host VG from being scanned for sub-VGs. It's actually easier to just list what SHOULD be scanned rather than what shouldn't.
> 
> Look in /etc/lvm/lvm.conf
> 
> This worked, thanks.  A couple of people emailed me separately on this.  For others' reference, I added the following filter to lvm.conf on dom0 and disabled the default "get everything" filter.  If anyone sees any pitfalls with this regex, I'm sure you'll let me know.
> 
> (assuming your physical disks are sas/sata)
> 
> filter = [ "a/^/dev/sd*/", "r/.*/" ]

For all HDs this should work:

filter = [ "a/^/dev/[hs]d*/", "r/.*/" ]

Run a 'vgscan -vv' to test.

-Ross

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101027/7f81de3f/attachment-0005.html>