public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Daniel Drake <ddrake@brontes3d.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: e2fsck and human intervention
Date: Mon, 5 Mar 2007 11:48:47 -0500	[thread overview]
Message-ID: <20070305164847.GB9444@thunk.org> (raw)
In-Reply-To: <1173112017.6300.14.camel@systems03.mmm.com>

On Mon, Mar 05, 2007 at 11:26:57AM -0500, Daniel Drake wrote:
> Hi,
> 
> I'm working with ext3 partitions in a product environment, where
> numerous embedded Linux systems will be shipped to various locations.
> 
> In testing we occasionally find that system boot is halted by e2fsck
> with an "UNEXPECTED INCONSISTENCY" error message. This is while running
> in preen mode.
> 
> This usually happens during e2fsck's regular "check every X mounts"
> thing, as opposed to immediately after booting up after power loss, so
> to begin with it's not immediately obvious why there is a problem.
> 
> It's of course understandable and inevitable that power loss will
> occasionally cause some file loss or corruption, and that's fine. My
> main concern is that fsck is halting the boot process, and in a product
> scenario this would require an engineer to perform a service call. If
> e2fsck could unconditionally perform a best-effort attempt at solving
> the problems, it would be ideal.

Actually, power loss by itself should *not* cause any corruption when
you are using ext3; that's the whole point of the journal.  If there
is, you probably have some other problem that you might do well to try
to debug before youi ship your product, since that may lead to
significant data loss in the long-term.

> 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 /"
> 
> Is there significant risk of further data loss through using -y than
> might be experienced otherwise?

You could do this, but if you are using ext3, this is really papering
over the problem.  With ext3, there really should not be any
corruptions caused by power loss.  

What sort of errors are being reported by e2fsck?

							- Ted

  reply	other threads:[~2007-03-05 16:48 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 [this message]
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
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=20070305164847.GB9444@thunk.org \
    --to=tytso@mit.edu \
    --cc=ddrake@brontes3d.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