From owner-freebsd-fs@FreeBSD.ORG Wed Dec 1 00:54:38 2010 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 ACA0C106567A for ; Wed, 1 Dec 2010 00:54:38 +0000 (UTC) (envelope-from brucec@muon.cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 77CE68FC20 for ; Wed, 1 Dec 2010 00:54:38 +0000 (UTC) Received: by muon.cran.org.uk (Postfix, from userid 1001) id 7E1E7E60EB; Wed, 1 Dec 2010 00:54:37 +0000 (GMT) Date: Wed, 1 Dec 2010 00:54:37 +0000 From: Bruce Cran To: freebsd-fs@freebsd.org Message-ID: <20101201005437.GA18296@muon.cran.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: ZFS hang during reboot after updating / to rw 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: Wed, 01 Dec 2010 00:54:38 -0000 Hi, I don't know if I'm doing something wrong, but I've found a way to reliably hang the system during reboot - I'm running the latest HEAD amd64 with ZFS on all the filesystems. After booting into single-user mode I wanted to mount all the filesystems rw so I did: # mount -a (realised I needed to use "zfs mount -a" instead) # zfs mount -a (/ is still ro, so update it to rw) # mount -u -o rw / Then, when rebooting the reboot task got stuck with the following backtrace: sched_switch() mi_switch() sleepq_switch() sleepq_wait() _sleep() zfsvfs_teardown() zfs_unmount() dounmount() vfs_unmountall() kern_reboot() reboot() syscallenter() syscall() Xfast_syscall() -- Bruce Cran