Operating System - HP-UX
1840091 Members
2795 Online
110161 Solutions
New Discussion

Mirorring span LV on span disk

 
reneguy_1
Advisor

Mirorring span LV on span disk

Hi,
I have this disk config :
d1c1 d2c2 d3c1 d4c2 d5c1 d6c2
(disk n on scsi contr p). All disk belong to one vg and there are one or more lv on each disk (lv have been created manually). Each lv on d1 is mirorred on d4 (not the same contr), d2 on d5 and d3 on d6. Each lv is stored on only one disk.
Now d2 has no space left and one lv (lvX) is full. The only one solution is to span it on d1 and/or d3.
How do i do to miror the part on lvX stored on d1 on d4, the part on d2 on d5, the part on d3 on d6 ?
Thanks.
2 REPLIES 2
monasingh_1
Trusted Contributor

Re: Mirorring span LV on span disk

I think you may want to make use of /etc/lvmpvg file
and also to move around data use pvmove as needed..
do a man on pvmove and man 4 lvmpvg

hope this helps.
John Palmer
Honored Contributor

Re: Mirorring span LV on span disk

When you extend it with lvextend, specify the disks that you want to use...

lvextend -L /dev/vg??/lvx /dev/dsk/d1 /dev/dsk/d4
lvextend -L /dev/vg??/lvx /dev/dsk/d2 /dev/dsk/d5
lvextend -L /dev/vg??/lvx /dev/dsk/d3 /dev/dsk/d6

Regards,
John