From owner-freebsd-fs@FreeBSD.ORG Fri Nov 30 17:44:33 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65C8416A421 for ; Fri, 30 Nov 2007 17:44:33 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from optimus.centralmiss.com (ns.centralmiss.com [206.156.254.79]) by mx1.freebsd.org (Postfix) with ESMTP id 3FE0713C4E1 for ; Fri, 30 Nov 2007 17:44:33 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by optimus.centralmiss.com (Postfix) with ESMTP id 828E2284A1; Fri, 30 Nov 2007 11:44:32 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 0A0AD61C44; Fri, 30 Nov 2007 11:44:32 -0600 (CST) Date: Fri, 30 Nov 2007 11:44:31 -0600 From: "Matthew D. Fuller" To: Bruce Evans Message-ID: <20071130174431.GE31891@over-yonder.net> References: <474F4E46.8030109@nokia.com> <20071130112043.H7217@besplex.bde.org> <474F69A7.9090404@nokia.com> <20071130033743.GC31891@over-yonder.net> <20071130164034.D12284@delplex.bde.org> <20071130165529.V954@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071130165529.V954@besplex.bde.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.16-fullermd.4 (2007-06-09) Cc: freebsd-fs@freebsd.org Subject: Re: File remove problem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 17:44:33 -0000 On Fri, Nov 30, 2007 at 05:00:21PM +1100 I heard the voice of Bruce Evans, and lo! it spake thus: > > Oops, this is missing a rm, and doesn't work with it. Yes, I haven't been able to reliably reproduce it without rm'ing stuff; mtree just gave me a nice easy way to make a bunch of stuff for testing. I mostly saw it with /usr/ports, which I keep mounted r/o except when building (which means the last thing before remounting is generally rm'ing a big tree). It has happened with / too, where I'd remount to edit something in /etc, but vim may do a rename() of a temp file instead of editing in place, so maybe it's still removing an inode. Last year, it used to not cause the softdep_waitidle messages and prevent the fs from being remounted. Instead, it would give an error like: hostname kernel: /: update error: blocks 28 files 2 and WOULD remount it, and even set the clean flag, but would still leave turds lying around that would need a manual fsck to clean up (fsck -p obviously would completely skip it, since it was marked clean). It was early this year that it moved from that annoying to the "locked fs" crippling variant. (n.b.: I don't have any real evidence that it's a mutation of the same problem, rather than two different ones, aside from the trigger condition apparently being the same, and the newer completely replacing the older.) > It takes a reboot per test. Yah :( I've been retrying it every few months post-upgrade, when I could just reboot the mess away. And otherwise just being very careful to sync a bunch of times, and wait a few minutes before `mount -u -oro`ing stuff. Rather a pain. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.