Testing the kdump configuration on RHEL

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Testing the kdump configuration on RHEL

Post by cah »

To test the configuration, reboot the system with kdump enabled, and make sure that the service is running:

Code: Select all

# systemctl is-active kdump
active
Then type the following commands at a shell prompt:

Code: Select all

echo 1 > /proc/sys/kernel/sysrq
echo c > /proc/sysrq-trigger
This forces the Linux kernel to crash, and the address-YYYY-MM-DD-HH:MM:SS/vmcore file is copied to the location you have selected in the configuration (that is, to /var/crash/ by default).
CAH, The Great
Post Reply