dumpdev question (probably stupid)
Andrey V. Elsukov
bu7cher at yandex.ru
Fri Oct 26 04:41:37 PDT 2007
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:
> bounce the server and ensure that /etc/rc.d/dumpon is started
> immediately after the boot process has completed.
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
More information about the freebsd-stable