[CentOS] LVM filters not working?

Bazy bazy84 at gmail.com
Tue Mar 26 07:20:33 UTC 2013


On 03/26/2013 01:33 AM, Dennis Jacobfeuerborn wrote:
> Hi,
> I'm trying to set up a redundant DRBD system but I'm running into
> trouble when I try to define a volume group. The physical backing device
> for the drbd resource /dev/drbd0 is /dev/vdb1. The problem is that when
> I do a "pvs" on the command line the physical volume is shown as
> /dev/vdb1. So I tried the following filter in /etc/lvm/lvm.conf:
>
> filter = [ "r|/dev/vdb.*|", "a/.*/"
>
> But this doesn't seem to haven any effect at all. The system still sees
> the volumen group on /dev/vdb1. Also various how-to's on the net say I
> should pay attention to deleting /etc/lvm/cache/.cache which makes sense
> but this file is never created.
>
> Any ideas what might be going on here? I'm trying all of this on CentOS 6.
>
> Regards,
>     Dennis
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Hi Dennis,

I'm guessing what you need is: filter = [ "r|/dev/vd[a-z].*|" ], then 
and lvmdiskscan.

//Bazy



More information about the CentOS mailing list