cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.
Johnson Punniyalingam
Honored Contributor
Solution

Re: hp ux problem with vgreduce

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

You command is wrong

vgextend -f /dev/vg00 /dev/dsk/c1t15d0

man vgextend -> for more information and examples
Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: hp ux problem with vgreduce

Why make life hard?

Why not follow the official procedures?

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf


There is no need to "un-mirror" the bad disk, a "pvchange -a n ..." is the way to go.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Johnson Punniyalingam
Honored Contributor

Re: hp ux problem with vgreduce

>>Torsten.<<

Greetings & Goodday,

was trying that link to post earlier, I was helpless ..... :(

>>Got some error that document has been removed or server unavailable <<<

One of my favorite document .:)


Thanks,
Johnson

Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: hp ux problem with vgreduce

There was an older document without the "_WP" - this is gone.

The newer also covers 11.31.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!