From owner-freebsd-stable@FreeBSD.ORG Thu Jul 9 17:35:09 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C458B1065676 for ; Thu, 9 Jul 2009 17:35:09 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1331B8FC1B for ; Thu, 9 Jul 2009 17:35:08 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA15530; Thu, 09 Jul 2009 20:35:07 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4A562A4A.2000201@icyb.net.ua> Date: Thu, 09 Jul 2009 20:35:06 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.22 (X11/20090630) MIME-Version: 1.0 To: Thomas Ronner References: <1247085058.6197.18.camel@bugstore> <4A55F96B.6070303@icyb.net.ua> <4A560E2F.1050906@ronner.org> <4A5626FC.5000306@ronner.org> In-Reply-To: <4A5626FC.5000306@ronner.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: ZFS: zpool scrub lockup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 17:35:10 -0000 on 09/07/2009 20:21 Thomas Ronner said the following: > I put the following in my kernel config: > > # debugging > options KDB > options DDB > options GDB > options BREAK_TO_DEBUGGER > options INVARIANTS > options INVARIANT_SUPPORT > options WITNESS > options WITNESS_KDB > options DEBUG_VFS_LOCKS > options DIAGNOSTIC > options SW_WATCHDOG > > When I send a BREAK from my serial console it enters the debugger, so > that works. But when I start ZFS (/etc/rc.d/zfs start) it freezes again > and BREAK doesn't enter the debugger. I'll try playing with the watchdog > now, but I doubt this will help. Any clues? > For watchdog to fire it first needs to be enabled, e.g. by starting watchdogd. Try to run /etc/rd.d/watchdogd onestart before zfs start and then wait for about 16 seconds (default timeout). If that doesn't help, then it seems that the only option would be debugging via serial console. Or manually generating NMI, if your system has an NMI button/switch/jumper. -- Andriy Gapon