xfs
[Top] [All Lists]

Re: How to fsck read-only-mounted root filesystem?

To: linux xfs ml <linux-xfs@xxxxxxxxxxx>
Subject: Re: How to fsck read-only-mounted root filesystem?
From: Andrew Klaassen <ak@xxxxxxx>
Date: Thu, 6 Dec 2001 09:46:26 -0500
In-reply-to: <1007591316.30179.10.camel@jen.americas.sgi.com>
Mail-followup-to: linux xfs ml <linux-xfs@xxxxxxxxxxx>
References: <Pine.LNX.4.30.0112051325360.6782-100000@anime.net> <1007591316.30179.10.camel@jen.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.3.23i
On Wed, Dec 05, 2001 at 04:28:36PM -0600,
Steve Lord wrote:

> > > Dan Hollis schrieb:

> > > > How can one xfs_check/xfs_repair a root filesystem?
<snip>
> No, it is just that the environment xfs comes from (Irix)
> tends to use other mechanisms to fix root filesystems - like
> an alternate root, or a miniroot.
> 
> It is also not 'install a cdrom', it is boot with a bootable
> cdrom.
> 
> Doing a user space fixup of a live filesystem also relies upon
> the block device cache and the filesystem's cache of metadata
> being coherent. If they are not then this approach does not
> work and can lead to nasty crashes very quickly. XFS was until
> recently using completely different caches for metadata than
> the block interface, they now use the same memory - mostly.
> Until they are coherent there is absolutely no point in doing
> modifications to a mounted XFS fs from user space.

Huh.  I could've sworn that I've xfs_repaired a filesystem
mounted readonly in the past...

Andrew Klaassen
 - must be experiencing brain bit-rot...


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