mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RAID60 - MD / LVM
@ 2009-07-22  9:04 mark delfman
  2009-07-22 23:06 ` NeilBrown
  0 siblings, 1 reply; 3+ messages in thread
From: mark delfman @ 2009-07-22  9:04 UTC (permalink / raw)
  To: linux-kernel

Hi All,

Firstly let me apologise for what maybe a simple question, I have
tried to google and search this out.

The question is simply ‘the best way to create a RAID60 or any nested
RAID’.  Looking at the examples it seems the approach is to create 2 x
RAID6’s and then simply RAID0 on top.  However, is there any advantage
in using MD to create the RAID0 or would you see the same overall
result by using LVM to stripe (R0) the 2 x RAID6’s?

Given that I see a lot of post’s RE: RAID10, then I ‘suspect’ that the
MD RAID0 code has some understanding of or tuning for nested RAID’s,
which I guess LVM may not have.

It would seem the answer is obvious as it makes sense to simply use
MD, but we have an internal system based on 100’s of old scripts and
the RAID section only allows us to select  ‘drives’ (not raids), it
does however use LVM so it would be easier to change the script which
created the VG as opposed to change the many scripts related to RAID
creation...

If there is a real disadvantage in using LVM, then we can manually
create the RAID’s I guess....



I would appreciate any feedback

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RAID60 - MD / LVM
  2009-07-22  9:04 RAID60 - MD / LVM mark delfman
@ 2009-07-22 23:06 ` NeilBrown
  2009-07-26 16:04   ` mark delfman
  0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2009-07-22 23:06 UTC (permalink / raw)
  To: mark delfman; +Cc: linux-kernel

On Wed, July 22, 2009 7:04 pm, mark delfman wrote:
> Hi All,
>
> Firstly let me apologise for what maybe a simple question, I have
> tried to google and search this out.
>
> The question is simply ‘the best way to create a RAID60 or any nested
> RAID’.  Looking at the examples it seems the approach is to create 2 x
> RAID6’s and then simply RAID0 on top.  However, is there any advantage
> in using MD to create the RAID0 or would you see the same overall
> result by using LVM to stripe (R0) the 2 x RAID6’s?

Most of the difference between using MD and LVM to do the striping would
be simply in the fact that different tools are used, so the best advice
would probably be to use whatever you are more familiar with.
In 2.6.31, md/raid0 will support a chunk size that is not a power of
2.  I don't think LVM supports that (yet).
That was added specifically for this sort of set up, so that the
RAID0 chuck can align with the RAID6 stripe.  Exactly how important
that alignment is probably depends on your workload.  I haven't really
thought it though enough to be able to give any guidance.


>
> Given that I see a lot of post’s RE: RAID10, then I ‘suspect’ that the
> MD RAID0 code has some understanding of or tuning for nested RAID’s,
> which I guess LVM may not have.

MD has a separate RAID10 module which stripes multiple copies of the
data across multiple drive.  It is simpler and more flexible than
RAID0 over RAID1.  There is no similar RAID60 module as there is a lot
less room for gains in flexibility.

>
> It would seem the answer is obvious as it makes sense to simply use
> MD, but we have an internal system based on 100’s of old scripts and
> the RAID section only allows us to select  ‘drives’ (not raids), it
> does however use LVM so it would be easier to change the script which
> created the VG as opposed to change the many scripts related to RAID
> creation...

I guess that is your answer then - use LVM over MD.

>
> If there is a real disadvantage in using LVM, then we can manually
> create the RAID’s I guess....

I haven't used LVM in this configuration so I cannot report first
hand experience, but I would be very surprised if LVM did not meet
your needs.

NeilBrown


>
>
>
> I would appreciate any feedback
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RAID60 - MD / LVM
  2009-07-22 23:06 ` NeilBrown
@ 2009-07-26 16:04   ` mark delfman
  0 siblings, 0 replies; 3+ messages in thread
From: mark delfman @ 2009-07-26 16:04 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-kernel

Thank you Neil, I appreciate you taking the time to help and advise.

Mark


On Thu, Jul 23, 2009 at 12:06 AM, NeilBrown<neilb@suse.de> wrote:
> On Wed, July 22, 2009 7:04 pm, mark delfman wrote:
>> Hi All,
>>
>> Firstly let me apologise for what maybe a simple question, I have
>> tried to google and search this out.
>>
>> The question is simply ‘the best way to create a RAID60 or any nested
>> RAID’.  Looking at the examples it seems the approach is to create 2 x
>> RAID6’s and then simply RAID0 on top.  However, is there any advantage
>> in using MD to create the RAID0 or would you see the same overall
>> result by using LVM to stripe (R0) the 2 x RAID6’s?
>
> Most of the difference between using MD and LVM to do the striping would
> be simply in the fact that different tools are used, so the best advice
> would probably be to use whatever you are more familiar with.
> In 2.6.31, md/raid0 will support a chunk size that is not a power of
> 2.  I don't think LVM supports that (yet).
> That was added specifically for this sort of set up, so that the
> RAID0 chuck can align with the RAID6 stripe.  Exactly how important
> that alignment is probably depends on your workload.  I haven't really
> thought it though enough to be able to give any guidance.
>
>
>>
>> Given that I see a lot of post’s RE: RAID10, then I ‘suspect’ that the
>> MD RAID0 code has some understanding of or tuning for nested RAID’s,
>> which I guess LVM may not have.
>
> MD has a separate RAID10 module which stripes multiple copies of the
> data across multiple drive.  It is simpler and more flexible than
> RAID0 over RAID1.  There is no similar RAID60 module as there is a lot
> less room for gains in flexibility.
>
>>
>> It would seem the answer is obvious as it makes sense to simply use
>> MD, but we have an internal system based on 100’s of old scripts and
>> the RAID section only allows us to select  ‘drives’ (not raids), it
>> does however use LVM so it would be easier to change the script which
>> created the VG as opposed to change the many scripts related to RAID
>> creation...
>
> I guess that is your answer then - use LVM over MD.
>
>>
>> If there is a real disadvantage in using LVM, then we can manually
>> create the RAID’s I guess....
>
> I haven't used LVM in this configuration so I cannot report first
> hand experience, but I would be very surprised if LVM did not meet
> your needs.
>
> NeilBrown
>
>
>>
>>
>>
>> I would appreciate any feedback
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-26 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-22  9:04 RAID60 - MD / LVM mark delfman
2009-07-22 23:06 ` NeilBrown
2009-07-26 16:04   ` mark delfman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®