Version
7.2.x (Linux only)
Topic
This document describes how to set up a Linux system for a kdump to produce a kernel crash log
Steps
- IMPORTANT: Provide results of following commands. Core file can not be analyzed until the results of the following commands are supplied:
uname –r rpm -qa | grep `uname -r` |
- Steps to enable kdump are addressed in following document. When kernel crashes, the core file is put in /var/crash subdirectory by default.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-kd...
Run following commands to verify kdump is set and running:
service kdump status cat /sys/kernel/kexec_crash_loaded (should return 1) cat /proc/iomem | grep Crash (should return "<some-address> : Crash kernel" |
- Please check if magic keys for Sysrq is enabled:
cat /proc/sys/kernel/sysrq |
It should show 1. If not, enable magic keys on the systems. This is the command to enable Sysrq:
echo 1 > /proc/sys/kernel/sysrq |
Force crash can also be generated using Alt-SysRq-c key combination or using “echo 0 > /proc/sysrq-trigger. The core file should be in /var/crash. - Once you have enabled the kdump and sysrq, and the machine crashes again, please collect and attach to this case the logs from the following locations:
- /var/crash/
- /srv/bit9/data