Operating System - HP-UX
1832678 Members
2935 Online
110043 Solutions
New Discussion

How do I remove an inexistent VG!

 
Max_10
Occasional Contributor

How do I remove an inexistent VG!

Someone removed physical disks but forgot remove the vg first!How do I remove the VG!
Max
6 REPLIES 6
Steven Sim Kok Leong
Honored Contributor

Re: How do I remove an inexistent VG!

Hi,

Perform a vgexport of this VG so as to remove it from /etc/lvmtab and directory of /dev/vgXX along with configuration files within it.

# vgexport vgXX

Hope this helps. Regards.

Steven Sim Kok Leong
Vijeesh CTK
Trusted Contributor

Re: How do I remove an inexistent VG!


hi max,

u take a copy of /etc/lvmtab file.. and do a "vgscan" which will create a new lvmtab file..

or do a vgexport of that particular vg.

Regards,

Vijeesh CTK
Carlos Fernandez Riera
Honored Contributor

Re: How do I remove an inexistent VG!

Hi Max:

Please, just vgexport.

unsupported
Michael Tully
Honored Contributor

Re: How do I remove an inexistent VG!

Total agreement!

# /usr/sbin/vgexport /dev/yourvgname
Anyone for a Mutiny ?
Heiner E. Lennackers
Respected Contributor

Re: How do I remove an inexistent VG!

In case of the VG has been activated even when some disks have been physically removed (quorum setting) then you have to deactivate your VG first:
vgchange -a n /dev/YourVG
vgexport /dev/YourVG

this will remove the VG and also the /dev/YourVG directory.
If you want to reuse the disks for a new VG you have to run a pvcreate -f on the rawdevicefiles of the disks.

Heiner
if this makes any sense to you, you have a BIG problem
T. M. Louah
Esteemed Contributor

Re: How do I remove an inexistent VG!

if the above didn`t work, it might be a tricky one.
.. verify urvg.conf by: strings /etc/lvmconf/urvg.conf if u see disk(s) there run: vgreduce -f /dev/urvg this will exclude the ghost disk.
.. if successfull run vgexport urvg

remember my ??0.02 :)
t??
Little learning is dangerous!