From owner-freebsd-stable@FreeBSD.ORG Fri Oct 26 11:41:37 2007 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 44AED16A418 for ; Fri, 26 Oct 2007 11:41:37 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [213.180.223.87]) by mx1.freebsd.org (Postfix) with ESMTP id 6347913C4AA for ; Fri, 26 Oct 2007 11:41:36 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:44237 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S8372850AbXJZLla (ORCPT ); Fri, 26 Oct 2007 15:41:30 +0400 X-Comment: RFC 2476 MSA function at smtp1.yandex.ru logged sender identity as: bu7cher Message-ID: <4721D25B.6060402@yandex.ru> Date: Fri, 26 Oct 2007 15:41:15 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: "Chris H." References: <20071026030636.e2yuttew8ososo48@webmail.1command.com> <4721C00C.1010905@yandex.ru> <20071026041106.hfzm32iy8s8o8kss@webmail.1command.com> In-Reply-To: <20071026041106.hfzm32iy8s8o8kss@webmail.1command.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: "\[FBSDS\]" Subject: Re: dumpdev question (probably stupid) 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: Fri, 26 Oct 2007 11:41:37 -0000 Chris H. wrote: > OK then. If I understand you correctly, I simply need to create: > /var/crash (the default) Yes. Also you need a swap size > ram size. > add the following to /etc/rc.conf: > dumpdev="AUTO" > dumpdir="/var/crash" > > bounce the server and ensure that /etc/rc.d/dumpon is started > immediately after the boot process has completed. > Correct? if you don't want reboot your machine after changing rc.conf you can run `/etc/rc.d/dumpon start`. It will mark your swap as a dumpdev. At the boot time /etc/rc.d/dumpon will be started automatically (if "dumpdev" is set). After system crash the kernel memory dump will be saved to the dempdev and after reboot dump will be extracted from the swap into dumpdir by the savecore. -- WBR, Andrey V. Elsukov