From owner-freebsd-current Fri May 18 1:54:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 90F3D37B423; Fri, 18 May 2001 01:54:23 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4I8sLP10378; Fri, 18 May 2001 09:54:21 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4I8sKb92664; Fri, 18 May 2001 09:54:20 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105180854.f4I8sKb92664@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: John Baldwin Cc: current@FreeBSD.ORG, mckusick@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: background fsck In-Reply-To: Message from John Baldwin of "Thu, 17 May 2001 14:31:55 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 May 2001 09:54:20 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.ORG This happens to me ``almost all the time'' on my dev box: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 254063 82600 151138 35% / devfs 1 1 0 100% /dev procfs 4 4 0 100% /proc /dev/ad0s1e 254063 7 233731 0% /tmp /dev/ad1s2a 496239 26424 430116 6% /var /dev/ad1s2e 4466254 1448160 2660794 35% /usr /dev/ad0s1f 775487 392540 320909 55% /usr/obj /dev/ad1s1a 10145116 5631076 3702432 60% /usr/ports/distfiles /dev/ad1s1e 10145116 4957632 4375876 53% /usr/audio /dev/ad1s1g 4963030 3621790 944198 79% /usr/packages /dev/ad1s1f 10145116 4790396 4543112 51% /cvs /dev/ad1s2f 33059676 1 30414901 0% /spare1 The interesting thing is that it always happens on /usr and /cvs and no other partitions. Both of these partitions have large directory hierarchies.... Also, FWIW it now takes nearly 30 minutes to fsck my laptop's disk (20Gb 5400rpm). That's not good.... > 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 -- 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/ -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message