[linux-lvm] lvm2 weirdness on software RAID5

Clint Byrum cbyrum at spamaps.org
Thu Apr 8 00:27:52 UTC 2004


On Wed, 2004-04-07 at 16:46, Michael Ossmann wrote:
<snip>
> Looks like lvm is configured to allow both /dev/md* and
> /dev/hd* as physical devices.  You probably want to limit it
> to /dev/md* so that it doesn't get confused by things it
> finds on the raw disk partition devices.  You can do this
> with:
> 
>   filter = [ "r|^/dev/hd*|" ]
> 

Ahh! Very interesting. I didn't see any mention of this in the HOWTO's
or anything, though I didn't look very hard.

> in the devices block of your /etc/lvm/lvm.conf.  If you do
> not have an /etc/lvm/lvm.conf, you can copy the sample
> config in the lvm2 distribution or create a fresh one with:
> 
>   # lvm dumpconfig > /etc/lvm/lvm.conf
> 
> You could also make the filter more specific if you want:
> 
>   filter = [ "r|^/dev/hdc*|" ]
> 

Note that lvm dumpconfig printed nothing. I used the example.conf from
the tarball and that worked perfectly.

Thanks.





More information about the linux-lvm mailing list