My VG disappeared after change lvm filter. How to restore it?

Solution Verified - Updated -

Issue

  • My original lvm filter defined in /etc/lvm/lvm.conf was:
filter = [ "a/.*/" ]
  • Using that filter I had the following vgs output:
$ vgs -v 
    Finding all volume groups
    Finding volume group "rootvg"
  VG     Attr   Ext    #PV #LV #SN VSize  VFree VG UUID                               
  root_vg wz--n- 32.00M   1  10   0 19.88G 6.59G A120aA-770a-9AaA-7aa4-aaaa-AAa1-A2312A
  • Then I changed it to the filter bellow and my VG dissapeared:
filter = [ "a|/dev/sda2$|", "a|/dev/sdb2$|", "a|/dev/mapper/mpath.*|", "r|.*|" ]
  • And my VG dissapeared and I received the following vgs output :
$ vgs -v 
  WARNING: Ignoring duplicate config node: filter (seeking filter)
    Finding all volume groups
    Finding volume group "vg_test"
    Finding volume group "rootvg"
  VG        Attr   Ext    #PV #LV #SN VSize  VFree  VG UUID                     
  rootvg    wz--n- 32.00M   1  10   0 19.88G  6.59G A120aA-770a-9AaA-7aa4-aaaa-AAa1-A2312A
  vg_test   wz--n- 32.00M   1   1   0 15.00G 11.00G bBbbb7-bBB4-BbBB-bBBb-8BB4-b3Bb-bB2b0b
  • What can I do to have access to my VG again?

Environment

  • Red Hat Enterprise Linux 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content