Operating System - HP-UX
1831912 Members
3771 Online
110031 Solutions
New Discussion

Can LVM support RAID 1+0?

 
zhaogui
Super Advisor

Can LVM support RAID 1+0?

I just wonder if LVM can support RAID 1+0, because lvcreate can support mirroring as well as striping, can I use lvcreate -m 1 -i 4 -I 64 ... to create such LV using four disks?

By the way, is there any command that can display layout of disk striping, lvdisplay -v will only show the extends details.

Thanks,

4 REPLIES 4
Carlos Fernandez Riera
Honored Contributor

Re: Can LVM support RAID 1+0?

No...

You can not mirror a striped lvol...

Instead you can use Logical Extent Based striping.


See man lvcreate , on -D option, and man lvmpvg.
unsupported
Pete Randall
Outstanding Contributor

Re: Can LVM support RAID 1+0?

There's an add-on product called MirrorDisk/UX which provides this capability for LVM. Also, if you're in the Veritas Volume Manager environment rather than LVM, there's an add-on product for that as well (B9116A).

Pete
harry d brown jr
Honored Contributor

Re: Can LVM support RAID 1+0?

zhaogui,

If you use extent based striping, you CAN mirror the LV's. To do extent based striping, you have to manually extend into each disk for the LV. It's a pain!

live free or die
harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: Can LVM support RAID 1+0?

hi,

Yes, you can , but it is a pain. check this doc:

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=e257801a0fba3030cc/screen=ckiDisplayDocument?docId=200000055002484


Other option is, create VG using distributed extents (vgcreate -s x -g pvgn ) and to create lvs, lvcreate -D y -s g -m 1 -L size .

Normally, with HA disks becoming the norm, the choice of using RAID level is taken at the H/W level. In EMCs, we use RAID 0/1 at Emc level. In XP, we use RAID 5 at XP level.

HTH
raj
Take it easy.