From owner-freebsd-questions@FreeBSD.ORG Thu Mar 2 19:40:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F28916A422 for ; Thu, 2 Mar 2006 19:40:40 +0000 (GMT) (envelope-from dennyboy@cableone.net) Received: from S4.cableone.net (s4.cableone.net [24.116.0.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB1A443D46 for ; Thu, 2 Mar 2006 19:40:39 +0000 (GMT) (envelope-from dennyboy@cableone.net) Received: from badboybox.cableone.net (unverified [69.92.7.117]) by S4.cableone.net (CableOne SMTP Service S4) with ESMTP id 48091230 for multiple; Thu, 02 Mar 2006 13:16:55 -0700 Date: Thu, 2 Mar 2006 13:42:36 +0000 (UTC) From: Denny White To: Olivier Nicole In-Reply-To: <200603020226.k222QGRP099167@banyan.cs.ait.ac.th> Message-ID: References: <200603020226.k222QGRP099167@banyan.cs.ait.ac.th> X-GPG-PUBLIC_KEY: http//wwwkeys.nl.pgp.net X-GPG-FINGERPRINT: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-NotAscii: charset=us-ascii; X-IP-stats: Incoming Last 13, First 37, in=12, out=0, spam=0 X-External-IP: 69.92.7.117 X-Abuse-Info: Send abuse complaints to abuse@cableone.net Cc: FreeBSD Questions Subject: Re: How to do a kernel dump? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2006 19:40:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Today Olivier Nicole spake forth boldly: > Hi, > > I'd like to get a kernel dump when the machine panics. > > I set-up dumpdev="/dev/rda0s1b" in /etc/rc.conf. > > My swap is: > > amanda41: swapinfo > Device 1K-blocks Used Avail Capacity Type > /dev/rda0s1b 1048448 0 1048448 0% Interleaved > > My memory is only 256 MB, so the swap is large enough to keep up to 4 > dumps. But still no dump, no image created in /var/crash, the system > reboots in multi-user mode and period. > > When I try savecore by hand I get: > > savecore: reboot after panic: page fault > savecore: system went down at Thu Mar 2 01:13:26 2006 > savecore: no dump, not enough free space on device (235544 available, > need 264924) > > How should I understand that? Is it because I use the raw device (that > is not clear in the handbook). > > System is: > > FreeBSD amanda.cs.ait.ac.th 4.11-RELEASE-p14 FreeBSD > 4.11-RELEASE-p14 #5: Tue Feb 28 16:07:07 ICT 2006 > root@amanda.cs.ait.ac.th:/usr/obj/usr/src/sys/SMALL i386 > > Thanks in advance, > > Olivier > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > This isn't guaranteed 100% correct, but at least if it's not, maybe it'll get someone else involved. Below my "dumpdev" in rc.conf I have savecore_flags="-z" to compress the core dump & kernel with gzip. Also, read man savecore again, esp the part about minfree in /var/crash & free kilobytes for non-superusers in the file system after the copies would be made. Hope this helps. Denny White GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (OpenBSD) iD8DBQFEBvZSy0Ty5RZE55oRAlsQAJ9fR4U+sciNcDO/Atva6AeJTlDo2wCeNzr+ 0wKgXzsrIOeMS9HIzMncw28= =t4yU -----END PGP SIGNATURE-----