1827405 Members
5329 Online
109965 Solutions
New Discussion

volume group

 
Ernest Tamura_1
Occasional Contributor

volume group

On a visualize 3000 workstation using hpux 10.20 how do
I remove a volume group and associated logical volumes from the system from the
command line? I had two drives and lost my vg00 disk. I used the
make_recovery tape to recover the os onto what was the vg01 disk. I have since
replaced the original vg00 disk and used the make_recovery tape to place the os
back on the original
device, but I can't remove the volume group vg01 or the logical volumes using
SAM.
1 REPLY 1
Dan Hull
Regular Advisor

Re: volume group

Sometimes it's difficult to remove lvols in this situation. The easiest way to
remove a VG is usually to vgexport it. This will remove all traces of the VG
from the system, but doesn't require the system to be able to access the disks
(generally speaking).

Just deactivate the VG first:

# vgchange -a n /dev/vg01

Then export it:

# vgexport /dev/vg01

Before you can reuse the disks, you'll need to pvcreate them (using the -f
option to force it).