From owner-freebsd-current@FreeBSD.ORG Wed May 30 18:56:01 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EA301065679 for ; Wed, 30 May 2012 18:56:01 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 56D448FC17 for ; Wed, 30 May 2012 18:56:01 +0000 (UTC) Received: by yhgm50 with SMTP id m50so172633yhg.13 for ; Wed, 30 May 2012 11:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=0tuzlomoB17FyXBZt39JlPwNQwBK2p8Cvcg7Utv+EVI=; b=PEwTuGgXg0YZbqzBVkiWOYoxCv1BzEwS0oQ3u8sbYJ61WDkO5/epp4tMuUDztXl5Th 71oNAssZHEfsVWUFfpqZ0rEqFPOjyuLa/r7BlKZ9kmEHAa+cb5bGNusAatazeEcBGiEC +QAqrNlfkoXhSZGmw4M5u1V2e+2rdw+dbCUgnPLrKMO9mgS6DvuZxF2yHzrkB31RYH2+ MX+JnPm4SFXnSSCh6yg4h9JQo5gcEHSMrOVMHhv+HyJkJuz1O9oAlJ47+0Ajft38LFi1 iy1pduBMFhRSt5IPMD2HtqXr/JScRBnnLDid3yp4Vjrc6JrYhdN2DMvoch/uk2Y5lLUE 5p7g== MIME-Version: 1.0 Received: by 10.60.3.202 with SMTP id e10mr16346852oee.52.1338404160628; Wed, 30 May 2012 11:56:00 -0700 (PDT) Received: by 10.76.153.72 with HTTP; Wed, 30 May 2012 11:56:00 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 May 2012 11:56:00 -0700 Message-ID: From: Garrett Cooper To: Larry Rosenman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: No reboot on shutdown -r 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, 30 May 2012 18:56:01 -0000 On Wed, May 30, 2012 at 11:50 AM, Garrett Cooper wrote= : > On Wed, May 30, 2012 at 11:31 AM, Larry Rosenman wrote: >> For the last month or so, when I reboot via shtudown -r the machine >> sits at "All Buffers Flushed", and I have to hit it with a IPMI reset. >> >> What can I do to help debug this? >> >> Current rev: >> >> FreeBSD borg.lerctr.org 10.0-CURRENT FreeBSD 10.0-CURRENT #38 r236314: W= ed >> May 30 11:10:24 CDT 2012 >> root@borg.lerctr.org:/usr/obj/usr/src/sys/BORG-DTRACE =A0amd64 >> >> >> I can provide anything else needed. > > =A0 =A0I've noticed some funkiness the last 1-2 times I rebooted by > STABLE-9 box as well where it will hang with ada+mfi/ZFS (two separate > pools), but I didn't think much of it at the time. I really don't like > rebooting that box all that often. > =A0 =A0I have another system that has just ada+ada/ZFS (two separate > pools) with approximately the same src version and it doesn't exhibit > the same issue (but I don't remember the last time I shut it down > cleanly because I've paniced the box screwing around with it a few > times), so while my gut feeling goes towards mfi being wonky or > another hardware difference between the two machines -- the root issue > could be (and probably is) something completely different. To answer your original question, something like this would suffice (this isn't tested, look at man 4 ddb, etc): 1. Build the kernel with ddb/kdb. 2. Setup dumpon to point to a swap partition with enough space to store kernel cores and make sure that /var/crash (or wherever you put your dumps) has enough space to store the [mini]dump. 3. Hit CTRL-ALT-ESC if it hangs. 4. Either issue 'call doadump; reboot' and let the system dump core and post the traceback somewhere like a pastebin, or do 'show alllocks; show allprocs' and have a camera ready to take some pictures from the ddb output. 5. Post the data somewhere and provide links to the output in a reply. Cheers, -Garrett