public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: xfs@oss.sgi.com
Cc: Ric Wheeler <rwheeler@redhat.com>, Julien FERRERO <jferrero06@gmail.com>
Subject: Re: XFS filesystem corruption
Date: Tue, 12 Mar 2013 10:57:51 +0100	[thread overview]
Message-ID: <201303121057.52092.Martin@lichtvoll.de> (raw)
In-Reply-To: <20130307232214.GY23616@dastard>

Am Freitag, 8. März 2013 schrieb Dave Chinner:
> On Thu, Mar 07, 2013 at 02:15:31PM +0100, Julien FERRERO wrote:
> > > We actually test brutal "Power off" for xfs, ext4 and other file
> > > systems. If your storage is configured properly and you have
> > > barriers enabled, they all pass without corruption.
> > > 
> > > What hardware raid cards can do is to hide a volatile write cache.
> > > Either on the raid HBA itself or, even worse, on the backend disks
> > > behind the card. S-ata disks tend to default to write cache enabled
> > > and need to be checked especially careful (sas drives tend to be
> > > write cache disabled by default).
> >
> > 
> >
> > Write cache is supposed to be disabled on the H/W RAID (according to
> > hdparm) and barrier are correctly enabled since xfs does not report
> > any warning at mount.
> >
> > 
> >
> > The odd thing is we never see this with kernel 2.6.18 where barriers
> > weren't yet available.
> 
> Yes they were. XFS had barrier support added in 2.6.15.

I thought this was 2.6.16? Or was that the kernel where it became usable due 
to the generic write barrier part being merged while the XFS one was ready 
earlier?

I still remember the XFS filesystem crashes I had back then that went away 
with disabling the write cache of the drive in my ThinkPad T42 back then and 
where solved with 2.6.17, whereas 2.6.17.7 solved a directory corruption 
issue introduced with 2.6.17. Thus I always recommended at least 2.6.17.7 in 
case of write barrier usage with XFS.

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

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

  parent reply	other threads:[~2013-03-12  9:58 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 15:08 XFS filesystem corruption Julien FERRERO
2013-03-06 15:15 ` Emmanuel Florac
2013-03-06 16:16   ` Julien FERRERO
2013-03-06 16:47     ` Ric Wheeler
2013-03-06 22:21     ` Emmanuel Florac
2013-03-06 23:12       ` Ric Wheeler
2013-03-07 13:15         ` Julien FERRERO
2013-03-07 13:40           ` Ric Wheeler
2013-03-07 23:22           ` Dave Chinner
2013-03-08 10:16             ` Julien FERRERO
2013-03-12  9:57             ` Martin Steigerwald [this message]
2013-03-08  8:39         ` Stan Hoeppner
2013-03-08 10:17           ` Julien FERRERO
2013-03-08 12:20           ` Ric Wheeler
2013-03-08 18:59             ` Stan Hoeppner
2013-03-09  9:11               ` Dave Chinner
2013-03-09 18:51                 ` Stan Hoeppner
2013-03-10 22:45                   ` Dave Chinner
2013-03-10 23:54                     ` Stan Hoeppner
2013-03-11  0:50                       ` Dave Chinner
2013-03-11  9:29                         ` Stan Hoeppner
2013-03-11 22:45                           ` Dave Chinner
2013-03-11  9:25                       ` Julien FERRERO
2013-03-12 10:54                         ` Emmanuel Florac
2013-03-12 10:42           ` Martin Steigerwald
2013-03-12 22:16             ` Stan Hoeppner
2013-03-07  3:56 ` Stan Hoeppner
2013-03-07 13:04   ` Julien FERRERO
2013-03-07 13:32     ` Stan Hoeppner
2013-03-10  2:50     ` Eric Sandeen
2013-03-10 22:11     ` Dave Chinner

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=201303121057.52092.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=jferrero06@gmail.com \
    --cc=rwheeler@redhat.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