public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Emmanuel Florac <eflorac@intellique.com>
Cc: xfs@oss.sgi.com
Subject: Re: Calculating swidth On A RAID6 Volume
Date: Wed, 21 Jul 2010 16:54:29 +1000	[thread overview]
Message-ID: <20100721065429.GX32635@dastard> (raw)
In-Reply-To: <20100720172704.609477f4@harpe.intellique.com>

On Tue, Jul 20, 2010 at 05:27:04PM +0200, Emmanuel Florac wrote:
> Le Tue, 20 Jul 2010 17:00:51 +0200
> Michael Monnerie <michael.monnerie@is.it-management.at> écrivait:
> 
> > I'd say using su+sw is more future proof than swidth+sunit, as 4K
> > sector drives will become standard, and then using 512B units will be
> > outdated anyway, right?
> 
> Absolutely, and furthermore I'm wondering what's happening in the
> case where the drives have 4096 bytes blocks; I suppose then sunit
> should be expressed as a number of 4096 bytes blocks, and what about
> swidth ? the hell if I know :) This is also probably a nice little nest
> of coming filesystem bugs to be hatched :=)

No, the sky is not going to fall. ;)

The stripe unit is not related to sector size except for the fact
that sector size defines the minimum filesystem block size and the
stripe unit is an integer mutliple of the filesystem block size.
i.e.

mkfs.xfs -s size=512 -b size=512 -d sunit=1,swidth=1

is a valid configuration that gives single sector sunit/swidth
alignment. Hence sunit needs to be able to express sizes in
multiples of 512 bytes.

For a 4k sector size drive, the equivalent is:

mkfs.xfs -s size=4096 -b size=4096 -d sunit=8,swidth=8

and mkfs.xfs will ensure that any value of sunit that is not
a multiple of 8 (4k) will be rejected.....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2010-07-21  6:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20 12:06 Calculating swidth On A RAID6 Volume Andrew Debenham
2010-07-20 12:40 ` Michael Weissenbacher
2010-07-20 13:22 ` Michael Monnerie
2010-07-20 14:13   ` Michael Weissenbacher
2010-07-20 14:44     ` Emmanuel Florac
2010-07-20 15:00       ` Michael Monnerie
2010-07-20 15:27         ` Emmanuel Florac
2010-07-21  6:54           ` Dave Chinner [this message]
2010-07-20 15:04       ` Michael Monnerie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100721065429.GX32635@dastard \
    --to=david@fromorbit.com \
    --cc=eflorac@intellique.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox