Operating System - HP-UX
1748246 Members
3207 Online
108760 Solutions
New Discussion юеВ

Re: steps for removing a pv

 
newunix
Frequent Advisor

steps for removing a pv

hi

can i have steps for removing a pv.
first


1vreduce
lvremove
vgreduce
vgremove
pvremove
rmsf -H hardware path.

i am not sure if above stpes are correct, can i have the detail steps
3 REPLIES 3
R.K. #
Honored Contributor

Re: steps for removing a pv

Hi..

How many disks are present in this VG (single/multiple)? (use vgdisplay)
Is the disk you are going to remove, mirrored? (use lvdisplay)
How many LVs are present on this disk? (use pvdisplay)
Do you want to remove the disk only or the entire VG?

You can share:
# vgdisplay -v vg_name
# pvdisplay /dev/dsk/c#t#d#

Don't fix what ain't broke
vishnu.khandare
Respected Contributor

Re: steps for removing a pv

Hi,

U must do the check lisk as given by RK, anyways steps to remove PV are,

lvreduce
lvremove
vgreduce
vgremove
pvremove
rmsf -H

Hope this solves ur query.


Regards
Vishnu Khandare
You should deserve before U desire!!!!
S. Ney
Trusted Contributor

Re: steps for removing a pv

I'd like to add one thing to what R.K and Vishnu stated above. Also make sure that your pv is not part of a stripped lvol.
vgdisplay -v vg_name
lvdisplay -v /dev/vg_name/lvol_name | more
pvdisplay -v pv_name | more