All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Krzysztof Adamski <k@adamski.org>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Looking for advice on creating XFS on a large (to me) RAID
Date: Thu, 3 Nov 2011 13:14:07 -0400	[thread overview]
Message-ID: <20111103171407.GA31841@infradead.org> (raw)
In-Reply-To: <1320337798.6471.89.camel@oxygen.netxsys.com>

On Thu, Nov 03, 2011 at 12:29:58PM -0400, Krzysztof Adamski wrote:
> Hi All,
> 
> I'm about to create a XFS file system on a MD RAID6 made up of 12 3T
> drives.
> 
> This is the command line that I was planning to use:
> 
> # mkfs.xfs

> -l lazy-count=1

This is the default in any semi-recent xfsprogs version.

> -s size=4096

using a sector size larger than the actual disk sector size might risk
data loss, as the log code expects sector sized writes to be atomic.

If you have a real 4k logical sector disk it should be picked up
automatically with the kernel topology support.  We don't quite do the
right thing for 512 byte logical / 4k physical disks, in which case
you might need this line.

> -N

That won't actually create you a filesystem :)

>          =                       sunit=128    swidth=1280 blks

In general you're better off with a 32k stripe unit / chunk size,
than the extremly large default of 512k.

> Should I change any default parameters to mkfs.xfs

Usually not.


  reply	other threads:[~2011-11-03 17:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 16:29 Looking for advice on creating XFS on a large (to me) RAID Krzysztof Adamski
2011-11-03 17:14 ` Christoph Hellwig [this message]
2011-11-03 17:45   ` Krzysztof Adamski

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=20111103171407.GA31841@infradead.org \
    --to=hch@infradead.org \
    --cc=k@adamski.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.