[Top] [All Lists]

Stripe alignment with RAID volumes

To: xfs@xxxxxxxxxxx
Subject: Stripe alignment with RAID volumes
From: "Gregory Maxwell" <gmaxwell@xxxxxxxxx>
Date: Sun, 16 Jul 2006 17:23:23 -0400
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gVRz1+BRXq/8PPySECTDGdoaB/mDL/7Ob/s8QjDdQIuRMrug9Cvf8vyMTkVXH0DLLh+mLa/lMpHjNmdoUYSTQnEgZvJc6NeWt4G28A+PYDUFVkeYqBpJ8VmfiKATedqe9+KQfzRQkj4ZjQQD6DUIckOsUU0t9Uby9F1Ao+mvKPw=
Sender: xfs-bounce@xxxxxxxxxxx
I have a 12 disk HW raid 5 with 128K stripe size. I built my 4k block
XFS volume with sunit=256,swidth=2816. Everything is peachy ... or is

If I built my volume on a partitioned block device (i.e. /dev/sda2) it
is quite likely that my partition will not start on a 128K boundary,
so what XFS thinks is a single disk is actually two.. Worse, it's
possible that the partition won't start on a 4K boundary... so every
FS block read of a block on the 128K boundary will require hitting two
disks (and potentially take an extra disk rotation if the disks are
not spin aligned).

This problem wouldn't be limited to XFS, but as one of the few FSes
that pays a lot of attention to the underlying disk geometry I thought
someone here might have given though to this issue.

I' believe that I have avoided this problem on my own system by just
putting the FS on the raw device....  which isn't so bad because msdos
partition tables won't permit a 3TB partition in any case... but
surely there must be a more general solution.

Would it be possible to add a stripe start offset to XFS?   I expect
it would be fairly easy to make a disk benchmark tool which could
estimate sunit, swidth, and start offset..

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