public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Drake <ddrake@brontes3d.com>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: e2fsck and human intervention
Date: Tue, 06 Mar 2007 09:27:07 -0500	[thread overview]
Message-ID: <1173191227.11804.9.camel@systems03.mmm.com> (raw)
In-Reply-To: <20070306024024.GZ6662@schatzie.adilger.int>

On Tue, 2007-03-06 at 10:40 +0800, Andreas Dilger wrote:
> As Ted said, if e2fsck detects anything wrong then this IS corruption
> of some kind.  It might indicate that your disks are writing with
> cache enabled and losing some writes that had been reported to the
> kernel as committed to disk.

Entirely possible, I'll look into that. Thanks for the pointer.

> > Are there any better approaches than something like the following?
> > 
> > 1. Run "e2fsck -p /"
> > 
> > 2. If bit 3 is set in exit code (i.e. preen functionality detected
> > unexpected inconsistency) then run "e2fsck -y /"
> 
> This is no better than just running "e2fsck -y" in the first place,
> just twice as slow.

OK. Given that write caching may be required for performance reasons or
there might be other possible reasons which would result in
preen-unrepairable fs corruption on power loss, my question is now: Is
it a really bad idea to run "e2fsck -y" on every boot?

I'm not expecting magic: I realise that in such configurations there is
risk of data loss. However, every time I have seen preen fail so far,
running "e2fsck -y" gets things back into bootable state and I'm simply
wondering how much potential trouble I would be getting myself into by
automating this.

Thanks.
-- 
Daniel Drake
Brontes Technologies, A 3M Company

  reply	other threads:[~2007-03-06 14:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05 16:26 e2fsck and human intervention Daniel Drake
2007-03-05 16:48 ` Theodore Tso
2007-03-05 17:01   ` Daniel Drake
2007-03-05 17:42   ` Sev Binello
2007-03-06  2:40 ` Andreas Dilger
2007-03-06 14:27   ` Daniel Drake [this message]
2007-03-07  5:19     ` Andreas Dilger

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=1173191227.11804.9.camel@systems03.mmm.com \
    --to=ddrake@brontes3d.com \
    --cc=adilger@clusterfs.com \
    --cc=linux-ext4@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox