[Top] [All Lists]

Re: Filesystem Consistency Issues

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Filesystem Consistency Issues
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Mon, 5 Dec 2005 20:49:53 -0900
In-reply-to: <43943F3E.5080804@xxxxxxx>
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <20051204142506.GE2605@xxxxxxxxxxx> <20051205014137.GA7685@xxxxxxxxxxxxxx> <p734q5nsre6.fsf@xxxxxxxxxxxxx> <43943F3E.5080804@xxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Mon, Dec 05, 2005 at 07:23:10AM -0600, Stephen Lord wrote:
> XFS runs recovery on a readonly filesystem. It has been doing that
> for years. There are log messages which come out when recovery runs,
> you should see them in dmesg or the syslog after boot up.

I believe there may be a slight problem with how this works in certain
circumstances.  I have observed the following problem, but have
not had time to do proper tests to confirm it.

Basically the situation is as follows:

1) /etc/fstab contains a filesystem mounted read-only by default.

2) said filesystem is remounted read-write, and files which are in use
   (running executables for example) are unlinked (such that link
   count becomes 0).

3) time passes.  (more then enough for everything to be synced).

4) system crashes or is rebooted uncleanly.

5) filesystem is mounted read-only, log recovery occurs anyway.

6) xfs_check or xfs_repair will report orphaned inodes which need to
   be moved to lost+found, if repair is performed inodes are indeed moved
   to lost+found, the inodes in question are the previously deleted files.

I have not had the chance to prove this, but I have seen enough
instances close enough to this that I believe it to be true.

Ethan Benson

Attachment: pgpmx9qYJJE5C.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>