Skip to contentSkip to conversation

lvdisplay ignoring filter in /etc/lvm.conf?

linux-lvm Don Hoover 2 participants 3 messages May 12, 2010 – May 13, 2010

lore
Share & tools
lore

Don Hoover

author
#0 lore raw

On futher-further testing..it appears that a "vgscan -vvvvvvvvvvvvvv" does not update the lvm cache like it used too before RHEL 5.5.

vgdisplay apparently uses the device list in the /etc/lvm/cache/.cache file.

If you make a change to your filter line in the lvm.conf, it won't take affect until you manually "rm /etc/lvm/cache/.cache", then run vgscan, and then the "Found duplicate PV" messages will be gone.

#1 lore raw
Quoted 2 lines · Don Hoover

On futher-further testing..it appears that a "vgscan -vvvvvvvvvvvvvv" does not update the lvm cache like it used too before RHEL 5.5.

btw -vvvv is enough ;-)

anyway, seems there is some bug, please can you report it to bugzilla.redhat.com (or through support channel)? I'll try to investigate it there.

Thanks,
Milan

#2 lore raw
Quoted 3 lines · Milan Broz
Quoted 2 lines · Don Hoover

On futher-further testing..it appears that a "vgscan -vvvvvvvvvvvvvv" does not update the lvm cache like it used too before RHEL 5.5.

It is only cluster lvm problem,
I filled that problem here https://bugzilla.redhat.com/show_bug.cgi?id=591861
Add to cc if interested.

Workaround for now is to manually remove that .cache file after filter change.

Thanks for reporting this,
Milan