[Top] [All Lists]

Re: Question regarding XFS on LVM over hardware RAID.

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: Question regarding XFS on LVM over hardware RAID.
From: "C. Morgan Hamill" <chamill@xxxxxxxxxxxx>
Date: Mon, 03 Feb 2014 11:12:39 -0500
Cc: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>, xfs <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wesleyan.edu; s=feb2013.wesmsa; t=1391443959; bh=Lp6L9HatAKVmeDKFGRw321F5Yinb56aMK+84+3EKcpc=; h=From:To:Cc:In-reply-to:Subject:References:Date; b=jK6Lz3hmh1TL2TjPFKjbP/1ptjXeH4PtXv+cvgU05YDPHRfxlD+ldQ3rtIMtOlIv1 dCK4EALUO8dDYsxuGjPPluluL8WeaORZit42B5jU8WRKLUYlr4uBTxyuGNgbMupAIr BPsjhWI6oXSWTWCAwphZmQiCgnES4PtUz3R/8xYw=
In-reply-to: <20140202212152.GP2212@dastard>
References: <1391005406-sup-1881@xxxxxxxxxxxxxxx> <52E91923.4070706@xxxxxxxxxxx> <1391022066-sup-5863@xxxxxxxxxxxxxxx> <52E99504.4030902@xxxxxxxxxxxxxxxxx> <1391090527-sup-4664@xxxxxxxxxxxxxxx> <20140130202819.GO2212@dastard> <52EB3B96.7000103@xxxxxxxxxxxxxxxxx> <1391202273-sup-9265@xxxxxxxxxxxxxxx> <52ED61C9.8060504@xxxxxxxxxxxxxxxxx> <20140202212152.GP2212@dastard>
User-agent: Sup/git
Excerpts from Dave Chinner's message of 2014-02-02 16:21:52 -0500:
> On Sat, Feb 01, 2014 at 03:06:17PM -0600, Stan Hoeppner wrote:
> > On 1/31/2014 3:14 PM, C. Morgan Hamill wrote:
> > > So, basically, --dataalignment is my friend during pvcreate and
> > > lvcreate.
> > 
> > If the logical sector size reported by your RAID controller is 512
> > bytes, then "--dataalignment=9216s" should start your data section on a
> > RAID60 stripe boundary after the metadata section.
> > 
> > Tthe PhysicalExtentSize should probably also match the 4608KB stripe
> > width, but this is apparently not possible.  PhysicalExtentSize must be
> > a power of 2 value.  I don't know if or how this will affect XFS aligned
> > write out.  You'll need to consult with someone more knowledgeable of LVM.
> You can't do single IOs of that size, anyway, so this is where the
> BBWC on the raid controller does it's magic and caches sequntial IOs
> until it has full stripe writes cached....

So I am probably missing something here, could you clarify?  Are you
saying that I can't do single IOs of that size (by which I take your
meaning to be IOs as small as 9216 sectors) because my RAID controllers
controller won't let me (i.e., it will cache anything smaller than the
stripe size anyway)?  Or are you saying that XFS with these given
settings won't make writes that small (which seems false, since I'm
essentially telling it to do writes of precisely that size).  I'm a bit
unclear on that.

In addition, does this in effect mean that when it comes to LVM, extent
size makes no difference for alignment purposes?  So I don't have to
worry about anything other that aligning the beginning and ending of
logical volumes, volume groups, etc. to 9216 sector multiples?

Thanks again!
Morgan Hamill

<Prev in Thread] Current Thread [Next in Thread>