Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

cant' vgreduce

SOLVED
Go to solution
hi_5
Frequent Advisor

cant' vgreduce

after reduce the mirror
still can't vgreduce
vgreduce /dev/vg00 /dev/dsk/c2t6d0
vgreduce: Physical volume "/dev/dsk/c2t6d0" could not be removed since some of i
ts
physical extents are still in use.
4 REPLIES
Denver Osborn
Honored Contributor

Re: cant' vgreduce

Make sure that none of the extents are in use by any lvols.

# pvdisplay -v /dev/dsk/c2t6d0

Any lvols on the disk need to be reduced/removed from the PV before you can reduce the disk from the VG.

-denver
Steven E. Protter
Exalted Contributor

Re: cant' vgreduce

I think you can't vgreduce the last disk from a volume group either.

If everything is empty, and there is only one disk left in the volume group, vgredice won't do the trick. Theough the message would say so.

Never mind.

vgdisplay /dev/vg##

post it please.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
blal
Frequent Advisor
Solution

Re: cant' vgreduce

Hi,

First you find out physical volumes in the volume group.You can do it by

strings /etc/lvmatab

This will list the physical volumes allocated .

Now find out the number of Logical volumes present by

Vgdisplay -v /dev/vgxx

Mirror status can be checked using

lvdisplay -v /dev/vg00/lvol1

I doubt that U have extents of some logical volume still lying on the second disk.

U may have to backup data in that lv and do an lvreduce to remove that lv .(u may have to recreate the lv and do a restore from Tape in this regard.)

Check the PE status on each physical volume using

pvdisplay -v /dev/rdsk/c?t?d?

vgreduce syntax is correct , it will work if all there is no allocated extents on the second disk .

These are my inputs , try and post ur findings.


Regds,
baiju


Live and let live.
hi_5
Frequent Advisor

Re: cant' vgreduce

resolve the problem, it is because one of the extend is using for swap..thanks for your help