Operating System - HP-UX
1824363 Members
3349 Online
109669 Solutions
New Discussion юеВ

can I add a mirror to a striped logical volume

 
Roland Rebstock_1
Frequent Advisor

can I add a mirror to a striped logical volume

Can a mirror be added to a striped logical volume as long as I have enough luns/physical devices? for example, I have a 2 column stripe logical volume, how can a mirror be added?
4 REPLIES 4
Roland Rebstock_1
Frequent Advisor

Re: can I add a mirror to a striped logical volume

think i answered my own question, striped mirrors apparently are not supported in LVM..
G. Vrijhoeven
Honored Contributor

Re: can I add a mirror to a striped logical volume

Roland,

Put the first two disks in a physical volume group. ( man lvmpvg ).vgextend -g vgname .
Add two new disk and put them in a different physical volume group and do a lvextend -m 1 /dev/vg/lvol.

HTH,

Gideon
Craig Rants
Honored Contributor

Re: can I add a mirror to a striped logical volume

You will probably not get a good answer until you post an lvdisplay of your lvol and vgdisplay of the volume group. Those would be very useful in obtaining a quick and correct solution.

Craig
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Tim D Fulford
Honored Contributor

Re: can I add a mirror to a striped logical volume



lvcreate -D y -s g -m 1 -n -L

This will create an extent based mirrored stripe over the disks groups you have defined in /etc/lvmpvg. You can manually create the lvmpvg file as below
VG
PVG
/dev/dsk/
/dev/dsk/
PVG
/dev/dsk/
/dev/dsk/

Regards

Tim
-