xfs
[Top] [All Lists]

Re: xfs_repair of root filesystem

Subject: Re: xfs_repair of root filesystem
From: Harri Haataja <harri.haataja@xxxxxxxxxxx>
Date: Tue, 1 Apr 2003 16:22:50 +0300
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3E897C91.1030404@xxxxxxxxx>; from msinz@xxxxxxxxx on Tue, Apr 01, 2003 at 06:48:33AM -0500
References: <1049150626.1258.58.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <3E897C91.1030404@xxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Tue, Apr 01, 2003 at 06:48:33AM -0500, Michael Sinz wrote:
> Jeremy Jackson wrote:
> > I'm wonder what's the official word about xfs_repair on a read-only
> > mounted fs.  The utilities complain for me, so I have to boot from a
> > repair partition to fix XFS (a while back when the shutdown files in
> > use bug was still a problem).  Ext2 has no problem with this.  I'd
> > just to know for future reference, so I know if I have to have a
> > spare root fs or not.
> 
> While I too would like to have a way to repair XFS read-only mounts,
> there are other reasons to have a special recovery partition for this.
> 
> What I have done is to make /boot its own partition at the start of
> the disk.  This is where the kernel lives, along with lilo stuff (or
> grub if you use that)
>
> Anyway, I have made a script that will build a mini-boot system in
> that partition and that will then run as the init process to fix up
> any other filesystems.  To help reduce the chance that /boot is
> corrupted, I mount it read-only and, since nothing normally runs from
> it, if it ever needs fixing, I can just unmount it and fix it after a
> regular boot.

You could have a /stand style thing that doesn't get mounted unless
doing recovery or a second initrd image (if all your tools fit on that)
that you can select in the boot loader.

Come to think of it, I should start doing something like this as well. I
have machines I can't easily boot from a floppy or CD, but where I could
do single-user boots if they mess up.

-- 
Yhden 64 kilon segmentin sisällä toimiva koodi on nopeaa ja kompaktia,
mikä auttaa mm. maksimoimaan prosessorin pienestä välimuistista saatavan
hyödyn.
                -- Petteri Järvinen


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