From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 26 06:27:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF38D1065676 for ; Sun, 26 Oct 2008 06:27:02 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from viefep18-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mx1.freebsd.org (Postfix) with ESMTP id 05D908FC08 for ; Sun, 26 Oct 2008 06:27:01 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from underworld.novel.ru ([88.147.175.232]) by viefep24-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20081026060935.RTXA19980.viefep24-int.chello.at@underworld.novel.ru> for ; Sun, 26 Oct 2008 07:09:35 +0100 Date: Sun, 26 Oct 2008 09:09:07 +0300 From: Roman Bogorodskiy To: freebsd-hackers@freebsd.org Message-ID: <20081026060906.GA66894@underworld.novel.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP: http://people.freebsd.org/~novel/novel.key.asc Subject: problems obtaining kernel dump X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 06:27:02 -0000 Hello, I'm having a problem obtaining kernel dump. The box has 512Mb of RAM. In rc.conf I have: dumpdev="/dev/ad4s1b" dumpdir="/var/crash" swapinfo -h gives the following: Device 1K-blocks Used Avail Capacity /dev/ad4s1b 1048576 0B 1.0G 0% /var/crash directory exists, and the root partition where it is placed has enough space as well: /dev/ad4s1a 989M 350M 560M 38% / The box runs fresh FreeBSD/i386 -CURRENT. So, I do swapoff and then perform actions to reproduce the crash and it breaks me into ddb prompt. I do: call doadump continue it reboots, and when I run "savecore -v /var/crash /dev/ad4s1b" it prints: unable to open bounds file, using 0 checking for kernel dump on device /dev/ad4s1b mediasize = 1073741824 sectorsize = 512 magic mismatch on last dump header on /dev/ad4s1b savecore: no dumps found The same happens when I do 'panic' instead of 'call doadump' like handbook suggests. What am I doing wrong? I googled for similar problems, found some mail threads but didn't find meaningful advises though. Roman Bogorodskiy