xfs
[Top] [All Lists]

Re: XFS check script on boot?

To: Jason White <jason@xxxxxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: XFS check script on boot?
From: Marco Gaiarin <gaio@xxxxxxxxx>
Date: Tue, 18 Mar 2008 11:41:01 +0100
In-reply-to: <20080318011210.GA12727@xxxxxxxxxxxxxxxx>
Organization: La Nostra Famiglia - Polo FVG
References: <20080317134847.GJ14510@xxxxxxxxx> <20080318011210.GA12727@xxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.15+20070412 (2007-04-11)
Mandi! Jason White
  In chel di` si favelave...

> The purpose of a journaling file system is to make time-consuming fsck and
> similar checks unnecessary after a reboot.

I know exactly that, and indeed, i agree.

I'm not speaking about writing a script that check everytime the
filesystem, but sometime (triggered by /forcefsck?)

The problem arise when you have on a remote site people with low
knowledge, and have to instruct them to run the kernel in
init=/bin/bash mode or in initrd 'emergency' mode, spelling all command
by phone.
[ok, a remote controlled KVM switch is on the buy list ;]

With a such boot script, if a fsck was forced, and a corruption founded,
the system ask for root password and an operator find a shell with /
mounted readonly and all other system unmounted (eg, the 'normal' way
of checking eg, for EXT3; apart that for other filesystem a 'simple'
check are ever tried, and password are asked only for serious corruption
that need 'fsck -f').

A good starting point for trying a recovery.

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it      tel +39-0434-842711  fax +39-0434-842797


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