From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753759AbZGZQEc (ORCPT ); Sun, 26 Jul 2009 12:04:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753737AbZGZQEc (ORCPT ); Sun, 26 Jul 2009 12:04:32 -0400 Received: from mail-bw0-f228.google.com ([209.85.218.228]:35012 "EHLO mail-bw0-f228.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753746AbZGZQEb convert rfc822-to-8bit (ORCPT ); Sun, 26 Jul 2009 12:04:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vIR072TdqzI3nbXtnDGy3L0G3GYlfO6UmvcSJOBfGxOrBVctYm7YgOzHsRtlZH6+ry w+USYEXDCxUll52oMR9Nmh4pCE8krvdFfPPpf5F+vP8pYOtP0yhsRHjLax0eeYJM+jxj Y91kGTcSry9BGvEi9jg8EMukk4ibEpNxXZsjY= MIME-Version: 1.0 In-Reply-To: References: <66781b10907220204o26964a70j90348ec78a685b52@mail.gmail.com> Date: Sun, 26 Jul 2009 17:04:30 +0100 Message-ID: <66781b10907260904q3c3ad961l4269eaf6cc7a222@mail.gmail.com> Subject: Re: RAID60 - MD / LVM From: mark delfman To: NeilBrown Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you Neil, I appreciate you taking the time to help and advise. Mark On Thu, Jul 23, 2009 at 12:06 AM, NeilBrown 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/ >> > >