Operating System - HP-UX
1755639 Members
3064 Online
108837 Solutions
New Discussion юеВ

Re: Unable to remove a VG

 
SOLVED
Go to solution
Sampath_4
Occasional Advisor

Unable to remove a VG

I have an unused VG with a single disk . Now i need the disk to extend another VG. But when i tried to remove the VG using vgreduce /dev/vg05 it says that the VG is not activated.

Then i tried activating the VG using

vgchange -a y /dev/vg05 but it says
Couldn't query the list of physical volumes. Quorum not present, or some physical volume(s) are missing.

even i tried disabling quorum
vgchange -a y -q n /dev/vg05

that is also not activating the VG.

Is there is any other way around
6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Unable to remove a VG

Sampath,

Try
# vgchamge -a n /dev/vg05
# vgexport /dev/vg05

Robert-Jan
Matti_Kurkela
Honored Contributor

Re: Unable to remove a VG

You cannot vgreduce the last PV out of a VG. You must destroy the VG to get that PV free.

Two ways to get rid of vg05:

1.) First lvremove all logical volumes from vg05, then "vgremove vg05". After that, the disk is free for other use.

2.) "vgexport vg05". This removes the volume group and all logical volumes in it from the current LVM configuration. It also creates a map file for restoring the volume group, but in this situation you don't need it.
This can (and actually must) be done when the volume group is not activated, so you can do this even if "vgchange -a y vg05" cannot be made to work.
MK
Victor BERRIDGE
Honored Contributor

Re: Unable to remove a VG

And the best way is the export as Robert Jan has mentionned
I would pvcreate -f the disk again to avoid all messages of used disks then vgextend


All the best
Victor
Mridul Shrivastava
Honored Contributor

Re: Unable to remove a VG

I would suggest you to do vgexport and then pvcreate on the disk, then you can extend the vg to this disk.
Time has a wonderful way of weeding out the trivial
Robert-Jan Goossens_1
Honored Contributor

Re: Unable to remove a VG

sorry for my typo!

# vgchange -a n /dev/vg05
# vgexport /dev/vg05
Sampath_4
Occasional Advisor

Re: Unable to remove a VG

Thanks all,

vgexport helped to make it