Operating System - HP-UX
1834733 Members
2605 Online
110070 Solutions
New Discussion

Removing a Phantom Logical Volume Group

 
Martin O'Brien
New Member

Removing a Phantom Logical Volume Group

A failed vgcreate produced a Volume group entry that I'm unable to remove. When I attempt to delete the group, I get an error that says: "vgremove: Volume group not activated.". However, when I attempt to activate the VG with "vgchange -a y -q n /dev/bb_bin", I get:

vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c3t2d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c3t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/bb_bin":
Quorum not present, or some physical volume(s) are missing.

** How can I remove this phantom volume group entry so that I can attempt to recreate it cleanly ?
5 REPLIES 5
RAC_1
Honored Contributor

Re: Removing a Phantom Logical Volume Group

If you are sure about, "the disk that this volume group in no way belong to vg", you can do

vgreduce -f vgxx
check vgdisplay
do lvremove

Anil
There is no substitute to HARDWORK
Martin O'Brien
New Member

Re: Removing a Phantom Logical Volume Group

The vgreduce does not work either. IT has the same issue. The volume group is not active. Therefore, commands to alter/modify the Volume Group fail. Rebooting the server has not helped.
Pedro Cosmen
Valued Contributor

Re: Removing a Phantom Logical Volume Group

Hello Martin, you can do this with vgexport

vgexport vgxx

Regards.
John Dvorchak
Honored Contributor

Re: Removing a Phantom Logical Volume Group

Have you tried to get rid of it with vgexport?:

> vgexport bb_bin

If it has wheels or a skirt, you can't afford it.
Martin O'Brien
New Member

Re: Removing a Phantom Logical Volume Group

The 'vgexport' succeeded where the other commands failed. Thanks for all input.