Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2005 09:32:02 +0200
From:      "Norbert Koch" <NKoch@demig.de>
To:        "Warren Toomey" <wkt@tuhs.org>, <freebsd-questions@freebsd.org>
Subject:   RE: Auto Reboot on Panic?
Message-ID:  <002b01c58c33$f4efbca0$4801a8c0@ws-ew-3.W2KDEMIG>
In-Reply-To: <20050719002404.GA39681@minnie.tuhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> I would like the box to dump core and reboot on a panic. I think 
> I have set
> the box up to do this, but on the last panic it didn't reboot. I 
> followed the
> information at http://www.bsdatwork.com/2002/03/29/system_panics_part_1/,
> and I have compiled a kernel with makeoptions DEBUG=-g, options KDB,
> options KDB_UNATTENDED.
>  
> /etc/rc.conf has these lines: dumpdev="/dev/ad6s1b", 
> dumpdir="/usr/local/var/crash". The box has 768M of RAM, ad6s1b has
> at least that much space, and is configured as swap. 
>  
> Can anybody tell me what I have forgotten to do to make the box reboot on
> a panic? Many thanks in advance,
>  
>         Warren

Hello.

>From my understanding of the kernel options:
	options	PANIC_REBOOT_WAIT_TIME=xx	# seconds before reboot
	options	KDB_UNATTENDED			# only required if compiled with kernel debugger
#	options	RESTARTABLE_PANICS		# should not be set

May be, you should also set kern.shutdown.kproc_shutdown_wait
in sysctl.conf to some reasonable time.

Norbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002b01c58c33$f4efbca0$4801a8c0>