Linux Kernel panic reboot

By default after a kernel panic, Linux kernel just waits there for a system administrator to hit the restart or powercycle button.  This is because of the value set on “kernel.panic” parameter.

[root@linux23 ~]# cat /proc/sys/kernel/panic 
[root@linux23 ~]# sysctl -a | grep kernel.panic 
kernel.panic = 0 
[root@linux23 ~]#

Linux OS Reboot After Kernel Panic

To disable this and make the Linux OS reboot after a kernel panic, we have to set an integer N greater than zero to the paramter “kernel.panic”, where “N” is the number of seconds to wait before a automatic reboot.

Permanent Solution

For example , if you set N = 10 , then the system waits for 10 seconds before automatic reboot. To make this permanent, edit /etc/sysctl.conf and set it.

[root@linux23 ~]# echo "10" > /proc/sys/kernel/panic 
[root@linux23 ~]# grep kernel.panic /etc/sysctl.conf 
kernel.panic = 10 
[root@linux23 ~]#

This helps in preventing manual intervention after a kernel panic. Setup some kernel dump or netdump to capture the kernel crash debug information.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

Netapp Ontap Management SDK

Next Post

OpenSource Tools for AIX

Related Posts

Load Average

A very good article on Unix Load averages and how it is calculated [ ] . Worth…
Read More


Worried about often copying files to remote machines using ftp or scp ?. Try using fuse-sshfs .  You…
Read More

Netapp : SNMP tips

How to enable SNMP on a netapp filer filer1> options snmp.enable onfiler1> options snmpsnmp.access                  legacy   snmp.enable                  on        filer1>…
Read More