From: Mike Ashton <mike@fysh.org>
To: xfs@oss.sgi.com
Subject: Re: fsck.xfs proposed improvements
Date: Fri, 24 Apr 2009 10:21:29 +0100 [thread overview]
Message-ID: <20090424092128.GD16600@fysh.org> (raw)
In-Reply-To: <49F09521.9000103@thebarn.com>
On Thu, Apr 23, 2009 at 11:19:45AM -0500, Russell Cattelan wrote:
> Traditional thinking with a journaled filesystem has been that if
> there is a dirty log then you do not want to risk mounting the
> filesystem in an inconsistent state an thereby risking a system
> crash or file system shutdown due to that inconsistent state.
Although I don't think you're doing anything more dangerous than
mounting a non-fsck'd non-journaling filesystem read-only, which is
the traditional unix boot method when you're not using initrd, I do
accept that I've introduced a non-zero chance of a system crash in
situations where everything is fine. I think I've thought of a
compromise.
I propose the addition of a new mount semantic, let's call it
"tryrecovery" for now, which will replay a log if possible or mount
the filesystem in an inconsistent state otherwise. So you would mark
a filesystem as being a root fs, enabling this behaviour, and the
kernel's attempt to mount its root filesystem would invoke this
behaviour without the explicit knowledge of lilo, grub, kernel
parameters, etc.
I believe this would address both our concerns. In the general case,
the behaviour will be as it is now; the journal is played, the root
filesystem will be mounted into known a good states and there's no
chance of a crash, but if everything's gone to hell, we allow
fingers-crossed access to the filesystem to be able to get access to
the xfs_repair tool.
> Also in the case of a mount -norecover with any subsequent repair
> being done, it is probably
> best to reboot at that point to ensure there is no bad FS data that
> may be in cache.
A remount to read/write ought to invalidate any cache/buffers for
exactly that reason.
Cheers,
Mike.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2009-04-24 9:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.0.1240318659.128675.xfs@oss.sgi.com>
2009-04-21 14:23 ` fsck.xfs proposed improvements Mike Ashton
2009-04-21 22:09 ` Russell Cattelan
2009-04-22 9:45 ` Mike Ashton
2009-04-22 21:45 ` Andi Kleen
2009-04-23 8:49 ` Mike Ashton
2009-04-23 12:45 ` Eric Sandeen
[not found] ` <20090423141432.GC16600@fysh.org>
2009-04-23 14:35 ` Mike Ashton
2009-04-23 16:19 ` Russell Cattelan
2009-04-24 9:21 ` Mike Ashton [this message]
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=20090424092128.GD16600@fysh.org \
--to=mike@fysh.org \
--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 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.