top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Make server reboot by itself instead of dropping to kernel debugger

+1 vote

on OpenBSD if you put ddb.panic=0 into /etc/sysctl.conf, the server won't drop into debugger on kernel panic. Is there a similar setting for CentOS 6.4 / 64 bit?

posted Aug 23, 2013 by Dewang Chaudhary

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
I've ended up doing this (hope it's valid for CentOS 6.4):

# echo 10 > /proc/sys/kernel/panic
# echo "kernel.panic=10" >> /etc/sysctl.conf

1 Answer

+1 vote

If your servers have a watchdog timer (most with IPMI/iLO/iDRAC/etc do), you can enable it. The OS will then have to kick the timer periodically to restart it's counter. If the OS panic's, it won't be able to reset
the timer. Once the timer expires, it reboots.

answer Aug 23, 2013 by Mandeep Sehgal
Similar Questions
0 votes

My setup is as follows:

Host OS: Debian Wheezy amd64 stock kernel (3.2), virt-manager v0.9.1

Guest VMs: A bunch of Linux based servers - CentOS 6, Debian 6/7, Ubuntu 12.04 (all amd64 with stock kernel). All of them defined using virt-manager GUI interface.

From the virt-manager, I am able to shutdown/reboot the Debian and Ubuntu guest OSs but not the CentOS 6 guests.

For the CentOS 6 guests, I have to resort to "Force off"

I have looked at the syslog and messages log files but do see anything to correlate between host and guest OS.

0 votes

I have a server with an 17tb scsi-storage. In past, the storage has a "jfs"-filesystem. Now i want to create a "ext4"-filesystem. I have update the e2fsprogs from 1.41 to 1.42 (16tb limit >1.41).

Now I have an 17tb-storage as /dev/sda1 with ext4. I can mount this device as /home/ (/etc/fstab /dev/sda1 /home/ ext4 defaults 1 2". Now I start a e2fschk /dev/sda1 (umounted). No error-messages are in
the screen.

If I now reboot the server, the server does not started:

I think thats can be a problem with the e2fsprogs 1.42, now i reinstall the server with the default e2fsprogs 1.41 from CentOS 6.4 and create only a 16tb /dev/sda1 partition with ext4. But if i start a "e2fschk
/dev/sda1" and reboot the server, i have the same message in the boot-screen and the server does not boot.

Why the system thinks that the device still be in use? How can i change this?

+1 vote

I have a problem with older version of anaconda linux installer. I have upgraded kernel in my distro, but, when this anaconda boot with new 3.4.52 kernel, can NOT find cdrom. As far as I understand, this is because the new kernel recognize cd drive as srX, scdX instead of older hdX with 2.6.18. At the moment I can not upgrade anaconda and forced this kernel to recognize it as before.

Are there any kernel command line argument, kernel config or something else for kernel 3.4.52 to recognize this cdrom as hdX?

+1 vote

I'm trying to turn off the kernel screen blanker that shuts off the video after about 10 minutes of inactivity at the keyboard. After extensive googling I've found two ways to *NOT* do it.

In my home .xinitrc

setterm -blank 0 -powersave off -powerdown 0
xset s off

In /etc/rc.local    
/usr/bin/setterm -powersave off -blank 0

I've tried both to no effect. Of course I've turned off the screen saver in the Gnome desktop.

How do I stop this machine from blanking the screen with no activity? I want video full time! I know someone is going to ask, "Why do you want to do that?", so to save you from asking.

  1. I'm setting up a kiosk that customers can use interactively. It's not very inviting to passers by when the screen is blank.
  2. I want to watch movies and Skype without having to poke the mouse all the time.
  3. My monitor is very unhappy when the video signal is cut off.

Useful Links with Similar Problem
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.