I want to enable kernel crash dumps for my Debian 5.0.7 machine. The kernel version is 2.2.26 amd64.
How can I configure this?
crashdebiandumpkernellinux
I want to enable kernel crash dumps for my Debian 5.0.7 machine. The kernel version is 2.2.26 amd64.
How can I configure this?
Best Answer
You may also want to look at Debian's
kdump-tools
package to automate some of the necessary boot-time steps.The steps are roughly,
sudo apt-get install kdump-tools
USE_KDUMP=1
in/etc/default/kdump-tools
crashkernel=128M
to the kernel command-line given in bootloader configuration (e.g./etc/default/grub
). It also doesn't hurt to passnmi_watchdog=1
as well to ensure that hard hangs are caught./etc/initramfs-tools/initramfs.conf
sudo update-grub
)CONFIG_RELOCATABLE=y
CONFIG_KEXEC=y
CONFIG_CRASH_DUMP=y
CONFIG_DEBUG_INFO=y
cat /sys/kernel/kexec_crash_loaded
sudo sync; echo c | sudo tee /proc/sysrq-trigger
crash
tool to look at the resulting crash dump