1833346 Members
2779 Online
110051 Solutions
New Discussion

VG is corrupt

 
SOLVED
Go to solution
Scott Dunkley
Regular Advisor

VG is corrupt

Hi,

I am trying to remove a VG called appsvg.

VGdisplay shows its as having only 1 PV however the Kernel thinks it has 2 I saw the message stating that as I was removing PV's from the VG.

Anyway i know want to remove the Vg completely and it wont go as it says there are too many PV's specified.

I am issuing vgremove appsvg and get the following message;

vgremove: Volume group "appsvg" still contains more than one physical volume.
vgremove: Couldn't remove volume group "appsvg"

vgdisplay shows:

trrips1# vgdisplay -v appsvg
--- Volume groups ---
VG Name /dev/appsvg
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 2170
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 0
Free PE 2046
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


--- Physical volumes ---
PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 1023
Free PE 1023

LVMTAB shows:

/dev/appsvg
/dev/dsk/c2t1d0


is there anyway to force the remove? Or how do I configure the kernel so there is only one PV left in the VG?
Better to regret something you have done, than something you havn't
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: VG is corrupt

First try vgexporet

If that does not work:
vgreduce -f /dev/appsvg

will get rid of it.

Follow the instructions displayed at the end of the command to insure you can recreate a volume group with the same name later.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: VG is corrupt

Scott,

Try vgexport instead.


Pete

Pete
Leif Halvarsson_2
Honored Contributor

Re: VG is corrupt

Hi,
Try the vgexport command instead.
Scott Dunkley
Regular Advisor

Re: VG is corrupt

worked a treat thanks guys.
Better to regret something you have done, than something you havn't