Operating System - HP-UX
1753505 Members
4821 Online
108794 Solutions
New Discussion юеВ

VG vg01 still contains more than 1 physical volume path

 
SOLVED
Go to solution
OFC_EDM
Respected Contributor

VG vg01 still contains more than 1 physical volume path

I'm trying to remove an old VG called vg01.
I removed the only lvol in the group.
Then I tried "vgremove /dev/vg01".

It then gave the following message:
vgremove: Volume group "/dev/vg01" still contains more than one physical volume path.
vgremove: Couldn't remove volume group "/dev/vg01".

But my VG is composed of 1 disk and 3 alternates. Do I still need to use pvremove to remove the alternates prior to removing the group?

VG01
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4127
VGDA 2
PE Size (Mbytes) 32
Total PE 4127
Alloc PE 0
Free PE 4127
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


--- Physical volumes ---
PV Name /dev/dsk/c14t0d6
PV Name /dev/dsk/c15t0d6 Alternate Link
PV Name /dev/dsk/c12t0d6 Alternate Link
PV Name /dev/dsk/c13t0d6 Alternate Link
PV Status available
Total PE 4127
Free PE 4127
Autoswitch On
The Devil is in the detail.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: VG vg01 still contains more than 1 physical volume path

Sure, just pvremove the alternate links.


Pete

Pete
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: VG vg01 still contains more than 1 physical volume path

Hi,

If you would like to completly remove the volume group use this

# vgchange -a n vg01
# vgexport vg01

Regards,
Robert-Jan
Sivakumar TS
Honored Contributor

Re: VG vg01 still contains more than 1 physical volume path

Dear Kevin,

If you dont want the vg01, You can try usging #vgexport command.

pls check the man pages og vgexport for details.

With Regards,

SIva
Nothing is Impossible !
James R. Ferguson
Acclaimed Contributor

Re: VG vg01 still contains more than 1 physical volume path

Kevin:

The short answer is "yes". The easiest way to eliminate the volume group is simply to 'vgexport' it. This has the advantage of cleaning up the '/dev/vgNN' device files too.

To reuse the physical disk that once comprised the old volume group, begin with a 'pvcreate -f' since they will still contain LVM headers.

Regards!

...JRF...
OFC_EDM
Respected Contributor

Re: VG vg01 still contains more than 1 physical volume path

I used the :
vgchange -a n vg01
vgexport vg01

Worked beautifully.

Thank you.
The Devil is in the detail.