Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2001 14:31:55 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        current@FreeBSD.org
Cc:        mckusick@FreeBSD.org
Subject:   background fsck
Message-ID:  <XFMail.010517143155.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Has anyone else been trying out the background fsck?   Last night I was working
on the ithread code some and managed to panic my laptop while ejecting a pccard.
Anyways, the kernel ate itself while trying to flush its buffers and I ended up
with a dirty filesystem.  I rebooted and let fsck -p do its usual thing, except
that it freaked out.  The actual fsck of / proceeded fine (actual fs activity
when I panic'd my machine was very low, so the filesystems weren't corrupted,
just marked dirty).  When it got to /usr and /var, however, fsck freaked out
and claimed that the primary superblock didn't match the first alternate.   At
this point I first had a heart attack.  Once I recovered from that, I attempted
read-only mounts of /usr and /var which did succeed, except that each mount
spewed out a message to the kernel console about losing x files and y blocks. 
Confident that my fs wasn't totally hosed after doing some ls's, I unmounted
/usr and /var and ran a non-preen fsck on them, which insisted on using an
alternate superblock, but otherwise proceeded fine (except that it seemed to
take longer than usual).  Once the fscks's finished, it seemed to be all ok. 
Is anyone else seeing any weird stuff like this?  I've never had fsck complain
about the superblocks after a crash before.

> df -t ufs
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s2a    148823    84717    52201    62%    /
/dev/ad0s2f  10191770  7052563  2323866    75%    /usr
/dev/ad0s2e     99183    14254    76995    16%    /var
> mount -t ufs
/dev/ad0s2a on / (ufs, local)
/dev/ad0s2f on /usr (ufs, local)
/dev/ad0s2e on /var (ufs, local)
> grep ufs /etc/fstab
/dev/ad0s2a             /               ufs     rw              1       1
/dev/ad0s2f             /usr            ufs     rw              2       2
/dev/ad0s2e             /var            ufs     rw              2       2

Hmm, that's odd, I did have soft updates on on /usr and /var before the crash. 
It seems to be off now. :(

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010517143155.jhb>