There is a way to auto reboot your servers on Kernel Panic. This is helpful in a situation where your servers are remote and needs time to arrange a hard reboot.
echo X>/proc/sys/kernel/panic , where X is the timeout in seconds, The kernel waits X seconds and reboots.
e.g. echo "1" > /proc/sys/kernel/panic
Above it is 1 sec. BUT usually I keep it 10sec or more to believe that the problem was transitory.
Thanks/-
DK
echo X>/proc/sys/kernel/panic , where X is the timeout in seconds, The kernel waits X seconds and reboots.
e.g. echo "1" > /proc/sys/kernel/panic
Above it is 1 sec. BUT usually I keep it 10sec or more to believe that the problem was transitory.
- kernel.panic = 1 initiates a hard system reboot whenever the system runs into a kernel panic.
- kernel.panic_on_oops = 1 extends that behavior to oopses (the kernel will then treat any oops just like it treats a panic)
Thanks/-
DK
No comments:
Post a Comment