From owner-freebsd-current@FreeBSD.ORG Wed Dec 1 09:28:11 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C6D9106566B for ; Wed, 1 Dec 2010 09:28:11 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2DD768FC15 for ; Wed, 1 Dec 2010 09:28:10 +0000 (UTC) Received: by pwi10 with SMTP id 10so1300481pwi.13 for ; Wed, 01 Dec 2010 01:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:cc:to :mime-version:x-mailer; bh=ED3u9eo0knu4YTk4eqUZ9bnZefQG3KR51XHIdGVB1T4=; b=qAZbbkHJk0BGh6I+W9F3+TqqdBZwDChQXu2elOHunISrSEVwZm7U+QydrxvgsAgUgL V7X4QbV5jnhM+S6nPUUbdNrQVdtxLvtPUX8F3uVVG69e83xkS6gRf5JYAhZdbFXKG3/6 ze/xjAVz7fgxHWoo+ua2h5tCX1+efGrxzqd6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=H/ZEu7UUVLgQIJunuE/ZKfV3YRZoNsH/Yq+jVpajJDJMaiqMmJX2IRBompNQeuaVXB ilYrRT79T2BfpWF1wd1vZwhwJOX6pNwCK2knPTVafA1LGzme9U98cPdfzquErNCCWVmL 4BMbo2ogss7U1rfqGvSoSuVcX361W3RM7zHSI= Received: by 10.142.199.20 with SMTP id w20mr8386156wff.419.1291195690559; Wed, 01 Dec 2010 01:28:10 -0800 (PST) Received: from starr-wireless.local (c-76-102-149-233.hsd1.ca.comcast.net [76.102.149.233]) by mx.google.com with ESMTPS id w22sm10185501wfd.7.2010.12.01.01.28.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Dec 2010 01:28:09 -0800 (PST) From: Garrett Cooper Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 1 Dec 2010 01:28:06 -0800 Message-Id: <1FA8A18C-9350-4C2D-B034-768566ACB718@gmail.com> To: Marshall Kirk McKusick Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Cc: current@freebsd.org Subject: How a full fsck screwed up my SU+J filesystem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2010 09:28:11 -0000 So... I was doing a portmaster -af today because vlc stopped = playing audio (for some reason ... I kind of went on a pkg_cutleaves = rampage and probably deinstalled too much stuff), and the machine = hardlocked during an upgrade. I did a soft reboot and saw messages along = the lines of "your journal and filesystem mount time mismatched; running = a full fsck". I figured "ok, sure..." and let it do it's thing. Problem = was that it pruned a lot of stuff from my /usr partition -- including = the .sujournal !!! So now it's stuck at Mounting local file systems: = stating: Failed to find journal. Use tunefs to create one Failed to start journal: 2 (I assume the 2 means ENOENT). All of the above were printf(9)'s = from the kernel. Now the machine won't continue in multiuser mode (doesn't = respond to interrupts, no panic, etc). Going into ddb, I don't see = anything in info_threads (just a bunch of references to sched_switch, a = few to fork_trampoline, cpustop_handler, and kdb_enter). I'm going to = try and massage the machine back to life from single user mode, but the = fact that this died in this way (i.e. .sujournal getting nuked by a full = fsck) is a bit disheartening for SU+J :(... It would be nice if at least = the fsck aborted before going and nuking the journal :/... (or at the = very least if the file wasn't removable -- i.e. SF_NOUNLINK). Here's to hoping I can resuscitate the filesystem... Thanks, -Garrett=