[linux-lvm] lvdisplay ignoring filter in /etc/lvm.conf?

Don Hoover dxh at yahoo.com
Wed May 12 15:10:47 UTC 2010

I am seeing some odd behavior on Redhat 5.5 LVM.

I just noticed that lvdisplay seems to ignore the filter configuration in /etc/lvm.conf.

We are getting "Found duplicate PV" errors on the /dev/sd? devices on our systems that are using clvm even though we filter those out in the lvm.conf to use the /dev/mapper/mpath* devices.  

We are running in a cluster, does clvm cause lvdisplay ignore this filter?  Is there a way to stop these "duplicate pv" errors from lvdisplay that is different on RHEL 55 than what worked before(filter line)?

It seems that its just lvdisplay in redhat 5.5 that is ignoring them.

For "lvscan -vvvvvvvvvvvvvvvvv"

I see this in the debug output:
#filters/filter-regex.c:172         /dev/sdgy: Skipping (regex)

For "lvdisplay -vvvvvvvvvvvvvvvvv"

I see this in the debug output:
#cache/lvmcache.c:1224       Ignoring duplicate PV Gw7zqCRUj0mjfGltw3AaHhMfznSjmMTc on /dev/sdgy - using dm /dev/mapper/mpath91

And no filter/skipping lines at all for any /dev/sd* devices...it scans them anyway for some reason.

I wonder if this is a bug that has been introdced in the latest lvm packages...I am seeing this on a RHEL55 box running:

More information about the linux-lvm mailing list