lvreduce with error when trying to reduce mirror (412 Views)
Reply
Advisor
Juergen Feldmann
Posts: 40
Registered: ‎03-12-1998
Message 1 of 7 (412 Views)
Accepted 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
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,135
Registered: ‎10-02-2001
Message 2 of 7 (412 Views)

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! star in the left column!   
Please use plain text.
Advisor
Juergen Feldmann
Posts: 40
Registered: ‎03-12-1998
Message 3 of 7 (412 Views)

Re: lvreduce with error when trying to reduce mirror

oops, sorry forgot to mention it's HPUX 11.11
Please use plain text.
Honored Contributor
Johnson Punniyalingam
Posts: 2,246
Registered: ‎09-22-2008
Message 4 of 7 (412 Views)

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
Please use plain text.
Advisor
Juergen Feldmann
Posts: 40
Registered: ‎03-12-1998
Message 5 of 7 (412 Views)

Re: lvreduce with error when trying to reduce mirror

thank guys, was able to fix it.

have a nice day
Juergen
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,135
Registered: ‎10-02-2001
Message 6 of 7 (412 Views)

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! star in the left column!   
Please use plain text.
Occasional Visitor
dukui_1
Posts: 1
Registered: ‎10-19-2009
Message 7 of 7 (412 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation