Home » Debian, How-to, Kernel, Linux, Newbie, Recovery, Tuning

Rebooting after a Kernel panic

4 March 2009 No Comment

Kernel Panic

Kernel Panic

By default, a Linux, is waiting direct input of a person / sysadmin when is crashing with kernel panic/oops. Obviously is very important to know or to see directly the dumped screen, but sometimes in production environments is better just to reboot itself without any intervention and debug the problem with the system online. Off course for debugging and seeing the dump you will need to install and configure kdump, but that is another story (I will probably write about that soon).

Anyway to set your system to reboot after 1 second you will just need to set a parameter at kernel level:

[sacx@randombugs]# echo “1” > /proc/sys/kernel/panic
[sacx@randombugs]# echo “1” > /proc/sys/kernel/panic_on_oops

To do this setting permanently just add it on sysctl.conf

kernel.panic = 1
kernel.panic_on_oops = 1

This setting is life saver in the case of a kernel panic or oops, but don’t forget to debug the problem and remove the ROOT cause. Also don’t forget to configure kdump in your system.

Good Luck and No kernel Panics 🙂


Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.