1832120 Members
3194 Online
110038 Solutions
New Discussion

LVM Stripe AND Mirror

 
SOLVED
Go to solution
Peter Heidbreder
Occasional Advisor

LVM Stripe AND Mirror

As far as I know they are mutially exclusive. You can do one or the other and I generally recommend that you would use hardware mirroring on your array.

My customer is apparently doing this with Veritas. Is there a way to do this with LVM.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: LVM Stripe AND Mirror

Hi Peter:

No, with LVM, true striping and mirroring are mutually exclusive. The closest you can get is to use extent-based mirrored stripes. See the manpages for 'lvcreate(1M)' for more information.

Regards!

...JRF...
Peter Heidbreder
Occasional Advisor

Re: LVM Stripe AND Mirror

James:

Thanks for the reply. I will need to see if that will work for them. They want to have the performance of stripes but want to have the mirror on a separate array to eliminate the array being a single point of failure.
Mridul Shrivastava
Honored Contributor

Re: LVM Stripe AND Mirror

As being mentioned by james, in LVM extent based stripe is possible.Let me explain briefly:
We need to create volume groups using pvg, pvg can be created using -g option with vgcreate or by editing /etc/lvmpvg.

Then while creating LV's we need to make sure that we enable strict distribution policy using the following options with lvcreate command:

lvcreate -D y -s g < lv name>

then if we do mirror it will extend to PVG2. Make sure that each PVG contains at least two disks.

I hope this clarifies a little bit more....
Time has a wonderful way of weeding out the trivial