LVM and VxVM

removing unused pv from volume group

 
GauravPatel
Occasional Contributor

removing unused pv from volume group

Hi Guys

 

I am facing issue while removing PV from the volume group .

 

vgreduce /dev/vg06 /dev/dsk/c13t1d5
vgreduce: Physical volume "/dev/dsk/c13t1d5" could not be removed since some of its
physical extents are still in use.

 

i have migrate all by data to new disk but the old disk is still showing some used PV

 

/root >pvdisplay /dev/dsk/c13t1d5
--- Physical volumes ---
PV Name                     /dev/dsk/c13t1d5
VG Name                     /dev/vg06
PV Status                   available
Allocatable                 yes
VGDA                        2
Cur LV                      0
PE Size (Mbytes)            32
Total PE                    9598
Free PE                     7902
Allocated PE                1696
Stale PE                    0
IO Timeout (Seconds)        90
Autoswitch                  On

 

 06624 current  ???                00000
   06625 current  ???                00001
   06626 current  ???                00002
   06627 current  ???                00003
   06628 current  ???                00004
   06629 current  ???                00005
   06630 current  ???                00006
   06631 current  ???                00007
   06632 current  ???                00008
   06633 current  ???                00009

 

 

i just want to remove my old disk from my volume group  , can  you please help me out

1 REPLY 1
singh sanjeev
Trusted Contributor

Re: removing unused pv from volume group

try to use:

 

vgreduce -f vgname

or

vgreduce -l vgname

Sanjeev Singh