Operating System - HP-UX
1753777 Members
7363 Online
108799 Solutions
New Discussion

Re: lvreduce -m 0 multiple PV's

 
Bob Manocchia
Regular Advisor

Re: lvreduce -m 0 multiple PV's

Thanks for all the replys. I ran pvmove -n /dev/vg/lvol .

Good advice. Thanks again.
Sandman!
Honored Contributor

Re: lvreduce -m 0 multiple PV's

>To repair the damage done by specifying just 4 PV's of the 16 on the lvreduce >-m 0 command, I think I need to use pvmove as follows:

And specify all the disks from the old frame by using the continuation character "\" at the end of the line for all disks that you want removed from the mirror copy.

lvreduce -m 0 /dev/vg??/lvol?? /dev/dsk/c6t0d4 /dev/dsk/c6t0d5 \
/dev/dsk/c6t0d6 /dev/dsk/c0t6d7 \
/dev/dsk/c6t1d0 /dev/dsk/c6t1d1 \
/dev/dsk/c6t1d2 /dev/dsk/c6t1d3 \
/dev/dsk/c6t1d4 /dev/dsk/c6t1d5 \
/dev/dsk/c6t1d6 /dev/dsk/c6t1d7

>pvmove -n /dev/vg/lvol c12) PVG01 (which is the pvg containing the c6 disks. This will move the >extends sitting on c12 (new disk frame) back to c6 (old disk frame). I can then >remirror them to c12 and lvreduce -m 0 properly.

Yes you would need to use pvmove(1M) to rollback the changes.

>What your take.

Please attach lvdisplay of the corrupt lvol and contents of the /etc/lvmpvg file.