Operating System - HP-UX
1834809 Members
2398 Online
110070 Solutions
New Discussion

need to remove a pv from a vg

 
SOLVED
Go to solution
Bob Carback
Frequent Advisor

need to remove a pv from a vg

HP-UX 11.23 IA64 -- I need to remove a physical volume from a volume group. Unfortunately the pv cannot be re-attached to the server. How can I do this without the ability to re-activate the vg?
4 REPLIES 4
DCE
Honored Contributor
Solution

Re: need to remove a pv from a vg


Bob,

Have you tried:

move /etc/lvmtab to /etc/lvmtab.old
vgscan -va
erics_1
Honored Contributor

Re: need to remove a pv from a vg

vgreduce -f /dev/vgname
*Will remove missing PV's from the VG

Regards,
Eric
James R. Ferguson
Acclaimed Contributor

Re: need to remove a pv from a vg

Hi Bob:

Well, if you mean destructively, that is, you don't want to use any part of the volume group again, just write over the LVM heades:

# pvremove /dev/rdsk/cXtYdZ

(or):

# dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=256k count=100

*But* if you want to preserve some physical members of the volume group, use:

# vgreduce -f /dev/vgXX

...In this case, see the manpages for 'vgreduce' for details.

Regards!

...JRF...
Bob Carback
Frequent Advisor

Re: need to remove a pv from a vg

thanks, that worked