LVM and VxVM
Showing results for 
Search instead for 
Do you mean 

lvreduce with error when trying to reduce mirror

SOLVED
Go to Solution

lvreduce with error when trying to reduce mirror

Hi guys,

mirrored system (vg00) needs hw-replacement.
When trying to reduce the mirror one lvol still fails:

root@kong[/usr/local/sbin]# lvreduce -m 0 /dev/vg00/lvol7 /dev/dsk/c0t6d0
lvreduce: Couldn't reduce the logical volume:
Device busy
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol7".
root@kong[/usr/local/sbin]#

HOW can I force the system to do that before I replace the harddisk?

Thanks for your help!
Juergen
6 REPLIES
Acclaimed Contributor

Re: lvreduce with error when trying to reduce mirror

No need to reduce the mirror.

Complete procedure:

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

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!   

Re: lvreduce with error when trying to reduce mirror

oops, sorry forgot to mention it's HPUX 11.11
Honored Contributor

Re: lvreduce with error when trying to reduce mirror

No Problem,


You can follow above "link" its verfy usefull and its command for all HPUX versions and it show how to rectify your problem, follow steps in the pdf file. Its wonder full pdf file& worth of reading it.


Rgds,
Johnson
Problems are common to all, but attitude makes the difference

Re: lvreduce with error when trying to reduce mirror

thank guys, was able to fix it.

have a nice day
Juergen
Acclaimed Contributor

Re: lvreduce with error when trying to reduce mirror

Even a patched 11.11 system has the pvchange -a n ... command.

Problem is, while changing the configuration (lvreduce) the system wants to write this to all disks. Witch a "almost dead" disk you may see such problems as you did. pvchange will avoid this.

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!   
Occasional Visitor

Re: lvreduce with error when trying to reduce mirror

1. check the lv mybe it the swap lv
2. fuser -c the mount point
3.lvdisplay -v /dev/vg00/lvol7
check the pe status