1846807 Members
3718 Online
110256 Solutions
New Discussion

striped mirror on 11.0

 
Bernard_6
New Member

striped mirror on 11.0

i striped across 6 disks with 1MB stripe size but failed to mirror them onto other 6 disks in the same volume group. is striped mirror supported on 11.0? if it is supported how to implement? please help. thanx.
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: striped mirror on 11.0

from the man pages of lvextend

When a logical volume with distributed extents is mirrored, the resulting layout is commonly referred to as
EXTENT-BASED MIRRORED STRIPES.

Note that EXTENT-BASED MIRRORED STRIPES can be created without the distributed allocation policy by adding one extent at a time to the desired physical volumes through lvextend(1m).

Also: You need a license to use mirror-ux

live free or die
harry
Live Free or Die
Craig Rants
Honored Contributor

Re: striped mirror on 11.0

Yes you can mirror with stripping. I would also get OnlineJFS, that along with MirrorDisk UX will give you some powerful LVM tools.

The example of a command to create a stripped mirrored lv would be:
# lvcreate -m 1 -l ???SIZE??? -i 2 -I 64 -s y (???n lvol#) /dev/vg0#

The -n is optional it lets you specify the name


Of course this is a simple example and your architecture should be evaluated to see if this applys.
Hope this helps.
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Alan Riggs
Honored Contributor

Re: striped mirror on 11.0

Under LVM you *cannot* mirror striped logical volumes. You can stripe an LV that has hardware mirroring *or* you can mirror an LV that uses extent striping (stripe depth == size of physical extent).

Under 11.i you can purchse VxVM which allows both striped mirror sets and mirrored stripe sets.
John Waller
Esteemed Contributor

Re: striped mirror on 11.0

The only way I have found on HP-UX 11.00 or less is a manual extent based striping.

e.g

lvcreate /dev/vg01
lvextend -l 1 /dev/vg01/lvol1 /dev/dsk/disk1
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/disk1m
lvextend -l 2 /dev/vg01/lvol1 /dev/dsk/disk2 /dev/dsk/disk2m
lvextend -l 3 /dev/vg01/lvol1 /dev/dsk/disk3 /dev/dsk/disk3m
etc. etc.

You can easily put this into a script when you ask for the number of extend then create a while do loop.
Wim Rombauts
Honored Contributor

Re: striped mirror on 11.0

NO, you cannot combine striping and mirroring, but LVM has a "distributed" option that will cause extents to be spread over the available disks. This has the same effect as striping, but striping usually has a smaller stripe size (default 16KBytes) than an LVM extent (usually around 4MB).

You don't have to extend the logical volume manually extent by extent to do this, just use the option "-D y" and lvcreate will do it for you, and will continue to do it for you if you later want to extend the volumegroup or add a mirror copy.

To use the "distributed" option, you need to use physical volume groups and use strict allocation policy "-s g" (see lvcreate manpage). And of course, you can't use it together with contiguous allocation (-C y is not allowed).
Carlos Fernandez Riera
Honored Contributor

Re: striped mirror on 11.0

No vs. YES

5-1
unsupported
Tim D Fulford
Honored Contributor

Re: striped mirror on 11.0

To answer Johns statement

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

Set up two PVG's (lvmpvg)& the above will Automatically give extent bases mirrored stripes.

Tim
-