Showing results for 
Search instead for 
Did you mean: 

Trying to vgremove

Go to solution
Regular Advisor

Trying to vgremove



We had some SAN issues, but the long and short of it is this:


vgdisplay: Warning: couldn't query the list of physical volumes. --- Volume groups --- VG Name                     /dev/vg40 VG Write Access             read/write VG Status                   available Max LV                      255 Cur LV                      0 Open LV                     0 Max PV                      16 Cur PV                      2 Act PV                      1 Max PE per PV               25599 VGDA                        2 PE Size (Mbytes)            16 Total PE                    6399 Alloc PE                    0 Free PE                     6399 Total PVG                   0 Total Spare PVs             0 Total Spare PVs in use      0 VG Version                  1.0 VG Max Size                 6553344m VG Max Extents              409584

   --- Physical volumes ---    PV Name                     /dev/disk/disk150 vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk120": The specified path does not correspond to physical volume attached to this volume group vgdisplay: Warning: couldn't query the list of physical volumes.    PV Status                   available    Total PE                    6399    Free PE                     6399    Autoswitch                  On    Proactive Polling           On


I can't vgremove it.


Can you help?





Patrick Wallek
Honored Contributor

Re: Trying to vgremove

If you just want to remove a volume group, use vgexport.


If the vg is deactivated do:


# vgexport /dev/vg40


If it is not deactivate run


# vgchange -a n /dev/vg40


and then try the vgexport again.

Regular Advisor

Re: Trying to vgremove

Thanks, did the trick!