public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: xfs@oss.sgi.com
Subject: Re: mount: Structure needs cleaning
Date: Mon, 27 Feb 2012 00:28:17 -0600	[thread overview]
Message-ID: <4F4B2281.1070200@hardwarefreak.com> (raw)
In-Reply-To: <33397518.post@talk.nabble.com>

On 2/26/2012 9:11 PM, MikeJeezy wrote:

>> On 02/26/2012 11:07am, Stan Hoeppner wrote: 
>> Are those other VMs using XFS filesystems? 
> 
> What kernel version are you running?  
> 
> 2.6.18-274.18.1.el5

I'm not familiar enough with Red Hat kernel revs to know if all relevant
patches are included in this kernel.  There are a few Red Hat devs here
who should have more insight on this.

>> Are you using LVM under XFS?  
> 
> No
> 
>> What fstab mount options?  
> 
> /dev/sdd1               /mnt/ob1               xfs     defaults        0 0
> /dev/sde1               /mnt/ob2               xfs     defaults        0 0
> 
>> Does your SAN array have battery backed write cache?  
> 
> This one does not currently, but I have ordered BBWC for it.

Good.  I suggest disabling the SAN controller's write caching until the
BBWC is installed and verified to be functioning correctly.

>> Are the individual drive caches in the underlying array disabled? 
> 
> Write cache: enabled
> Read ahead: enabled

In the case of a SAN array or PCIe RAID controller, this dmesg output is
telling you about the state of the controller's cache, not the
individual drive caches.  Enable/disable of the drive caches should be
an option in the controller firmware interface.  You want the individual
drive write caches disabled.  Leaving their read caches enabled is fine.

The reason is that a power drop, kernel panic, or hardware lockup
(thermal etc) clears the drive write caches before the blocks are
written to the platters.  It is suspected that many/most of these free
space btree corruptions, such as yours here, are caused by data in
caches not being flushed to the platters.  SAN/RAID controllers with
BBWC usually guarantee data in the write cache gets properly flushed to
the platters when the system comes back up.

So, way back when, you may have had a system (VM) crash of one kind or
another, or an improper shutdown (VM power-off), then rebooted, and
everything seemed fine.  Months later, you discover you have a corrupted
free space btree, which was caused by the crash long ago, that everyone
forgot about, never documented, etc.

-- 
Stan

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

  reply	other threads:[~2012-02-27  6:28 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-26  3:15 mount: Structure needs cleaning MikeJeezy
2012-02-26  4:35 ` Stan Hoeppner
2012-02-26  7:22   ` MikeJeezy
2012-02-26 17:07     ` Stan Hoeppner
2012-02-27  0:49     ` Dave Chinner
2012-02-27  3:11       ` MikeJeezy
2012-02-27  6:28         ` Stan Hoeppner [this message]
2012-02-27 18:32           ` MikeJeezy
2012-02-28  1:48         ` Dave Chinner
2012-02-28  9:14           ` Brian Candler
2012-02-29  3:50             ` Dave Chinner
2012-02-29  7:40               ` Brian Candler
  -- strict thread matches above, loose matches on Subject: below --
2014-10-12  8:43 Mount: " tommason
2014-10-12 14:20 ` Brian Foster
2014-10-12 22:39   ` tom mason
2014-10-12 22:48     ` tom mason
2014-10-12 22:51       ` tom mason
2014-10-12 23:10       ` Dave Chinner
2014-10-13 10:05         ` Tom Mason
2014-10-13 10:19           ` Emmanuel Florac
2014-10-13 10:40             ` Tom Mason
2014-10-13  9:26       ` Emmanuel Florac
2014-10-13 20:33 Tom Mason
2014-10-13 22:09 ` Dave Chinner
2014-10-13 22:25   ` Tom Mason
2014-10-13 23:44     ` Dave Chinner
2014-10-13 22:38   ` Tom Mason
2014-10-13 23:47     ` Dave Chinner
2014-10-14 10:55     ` Emmanuel Florac
2014-10-14 15:46       ` Tom Mason
2014-10-14 16:38         ` Emmanuel Florac
2014-10-14 16:43           ` Tom Mason
2014-10-21 20:44           ` Tom Mason

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=4F4B2281.1070200@hardwarefreak.com \
    --to=stan@hardwarefreak.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