Operating System - HP-UX
1751832 Members
5623 Online
108782 Solutions
New Discussion юеВ

hp ux problem with vgreduce

 
SOLVED
Go to solution
taouw
Frequent Advisor

hp ux problem with vgreduce

i have a mirrored boot disk, and i wish to replace a failed disk.

first, i reduce all logical volume by typing:
lvreduce -m 0 /dev/vg00/lvolX /dev/dsk/C1t15d0

after that i receive the following error when i reduve the volume group:
"vgreduce: physical volume could not be removed since some of its physical extents are still in use"

can y help me to resolve the problem!!!

13 REPLIES 13
Johnson Punniyalingam
Honored Contributor

Re: hp ux problem with vgreduce

>>"vgreduce: physical volume could not be removed since some of its physical extents are still in use<<

It means you have still have some more(lvolXX)

vgdisplay -v /dev/vg00 |more -> output will be helpfull
Problems are common to all, but attitude makes the difference
taouw
Frequent Advisor

Re: hp ux problem with vgreduce

I have reduce all logical volume from 1 to 8, execpt one logical volume:

/dev/vg00/u01
lv status :available/syncd

it is necessary to reduce this logical volume "u01"
Johnson Punniyalingam
Honored Contributor

Re: hp ux problem with vgreduce

so you know your problem, how can you reduce a if any logical volume exist inside ?

i would assume you told me earlier you are replacing mirror boot disk,

so you have too.. dude -> are you worried about the data ? you no need to worry if you have already properly mirror /u01 file system on your
Problems are common to all, but attitude makes the difference
taouw
Frequent Advisor

Re: hp ux problem with vgreduce

But the following command is not executed successfully:

lvreduce -m 0 /dev/vg00/u01 /dev/dsk/c1t15d0


vreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
herefore no mirrors are removed.
Johnson Punniyalingam
Honored Contributor

Re: hp ux problem with vgreduce

can post the below out put

lvdisplay -v /dev/vg00/u01 |more

Problems are common to all, but attitude makes the difference
Aneesh Mohan
Honored Contributor

Re: hp ux problem with vgreduce

Hi,

do

pvmove -n /dev/vg00/u01 /dev/dsk/c1t15d0 /dev/dsk/cxtxdx

change /dev/dsk/cxtxdx with your correct disk in the volume group.

then try lvreduce.

Regards,
Aneesh
Aneesh Mohan
Honored Contributor

Re: hp ux problem with vgreduce

after pvmove , I mean try vgreduce.

Aneesh
Johnson Punniyalingam
Honored Contributor

Re: hp ux problem with vgreduce

>>vreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";
herefore no mirrors are removed.<<

I hope someone have extend space for /u01 ->by using you mirror disk (PV)

so meaning the /u01 -> file system logical volume exists on your mirror disk also

Options :-

you can try "as per above post" pvmove

hopefully you should have Free PE on "pri-boot disk"


Problems are common to all, but attitude makes the difference
taouw
Frequent Advisor

Re: hp ux problem with vgreduce

one other error

# vgextend -f /dev/vg00 /dev/c1t15d0
vgextend: Physical volume "/dev/c1t15d0" is not a block special file.