From owner-freebsd-amd64@FreeBSD.ORG Wed Aug 15 11:30:09 2012 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8DD1C1065672 for ; Wed, 15 Aug 2012 11:30:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 66F538FC0A for ; Wed, 15 Aug 2012 11:30:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7FBU9cJ025544 for ; Wed, 15 Aug 2012 11:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7FBU9Jv025542; Wed, 15 Aug 2012 11:30:09 GMT (envelope-from gnats) Resent-Date: Wed, 15 Aug 2012 11:30:09 GMT Resent-Message-Id: <201208151130.q7FBU9Jv025542@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matt Smith Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E2C11065672 for ; Wed, 15 Aug 2012 11:27:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4FC058FC16 for ; Wed, 15 Aug 2012 11:27:31 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7FBRVLE049812 for ; Wed, 15 Aug 2012 11:27:31 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q7FBRV9g049811; Wed, 15 Aug 2012 11:27:31 GMT (envelope-from nobody) Message-Id: <201208151127.q7FBRV9g049811@red.freebsd.org> Date: Wed, 15 Aug 2012 11:27:31 GMT From: Matt Smith To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Wed, 15 Aug 2012 11:59:50 +0000 Cc: Subject: amd64/170646: Unable to cleanly unmount root / filesystem on 9.1 amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2012 11:30:09 -0000 >Number: 170646 >Category: amd64 >Synopsis: Unable to cleanly unmount root / filesystem on 9.1 amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 15 11:30:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Matt Smith >Release: 9.1-PRERELEASE amd64 >Organization: >Environment: FreeBSD tao.xtaz.co.uk 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Tue Aug 7 12:46:49 BST 2012 root@tao.xtaz.co.uk:/usr/obj/usr/src/sys/TAO amd64 >Description: I am running the latest code which I compiled from RELENG_9_1, although I can see that RELENG_9 is pretty much identical at this point too. I'm using the amd64 architecture on an Intel Atom D525 motherboard. I'm using UFS2 with softupdates and softupdates journalling enabled. And it's mounted via glabel. It works fine except when I try and reboot or shutdown the machine I get this error (written down from console, hopefully no typos): Syncing disks, vnodes remaining...7 7 2 0 0 done All buffers synced. fsync: giving up on dirty 0xfffffe0007102780: tag devfs, type VCHR usecount 1, writecount 0, refcount 2292 mountedhere 0xfffffe000000729ca00 flags (VI(0x200)) v_object 0xfffffe0005101910 ref 0 pages 23509 lock type devfs: EXCL by thread 0xfffffe00018fe08e0 (pid 1) dev label/root umount of / failed (35) Then when the box comes back up again it detects that / was not unmounted cleanly and recovers from journal before marking it clean once more. My fstab: /dev/label/root / ufs rw 1 1 /dev/label/swap none swap sw 0 0 My gpart: => 34 1250263661 ada0 GPT (596G) 34 1024 1 freebsd-boot (512k) 1058 990 - free - (495k) 2048 1228931072 2 freebsd-ufs (586G) 1228933120 21330575 3 freebsd-swap (10G) I have also tried changing this to /dev/ada0p2 in case it was an issue with using labels and it does the same thing. I had no problems with it unmounting from the USB install stick that I used which was 9.1-BETA1, it's only started doing this since I updated it to RELENG_9_1 although the actual installed 9.1-BETA1 may have also done it, but I am unsure. I did make a custom kernel file when I did that as well, but I don't think I've taken anything important out of it. >How-To-Repeat: Always repeatable by running shutdown -h now on my 9.1-PRERELEASE server. >Fix: >Release-Note: >Audit-Trail: >Unformatted: