Enable kdump

rpm -qa | grep `uname -r`
yum –enablerepo=debug install kexec-tools crash kernel-debug kernel-debuginfo-`uname -r`

vi /boot/grub/grub.conf
you should add new kernel parameter like: crashkernel=128M

chkconfig kdump on
service kdump start

Check if kdump is active: cat /sys/kernel/kexec_crash_loaded

Test kernel panic:

echo 1 > /proc/sys/kernel/sysrq
echo c > /proc/sysrq-trigger

Check log in: /var/crash

crash /usr/lib/debug/lib/modules/`uname -r`/vmlinux /var/crash/127.0.0.1-2014-12-14-16\:40\:21/vmcore

Leave a Reply

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