From: Marco Gaiarin <gaio@sv.lnf.it>
To: xfs@oss.sgi.com
Subject: XFS check script on boot?
Date: Mon, 17 Mar 2008 14:48:47 +0100 [thread overview]
Message-ID: <20080317134847.GJ14510@sv.lnf.it> (raw)
I've recently suffered an XFS corruption on a remote server (intel,
debian etch, custom 2.6.X kernel): at some point some process hit an
XFS inconsistency on /var, so /var desappear and suddenly machine
refuse to work.
Being a remote machine with no full-knowledge people there, i've
rebooted it, entered in ssh and stopped all services and tasks,
arriving at the point where i can remount /var readonly.
So i was able to xfs_check the partition (that confirmed me the
corruption), but i was not able to unmount /var, so i was forced to use
'-d' options of xfs_repair. That indeed worked. ;)
This was the first tile i hit a xfs filesystem corruption, so i'm
asking why seems there's no /etc/init.d/checkfs.sh-like script that
check and repair XFS filesystem at boot.
Probably doing fully automatically it is a bit too dangerous, but an
approach like 'normal' fsck, eg if filesystem are too corrupt (it need
'-f' option) ask admin password and force to do it by hand, seems to me
simple and effective.
Someone can explain me? Thanks.
--
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
next reply other threads:[~2008-03-17 13:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 13:48 Marco Gaiarin [this message]
2008-03-18 1:12 ` XFS check script on boot? Jason White
2008-03-18 10:41 ` Marco Gaiarin
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=20080317134847.GJ14510@sv.lnf.it \
--to=gaio@sv.lnf.it \
--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.