Simulating a panic allows you to verify that kdump is configured properly:
Note: Prior to simulating the panic, ensure that there is enough free disk space in the filesystem of the virtual machine to write the crash dump. This file is approximately the size of the memory being used by the virtual machine at the time of the panic.
- Run this command to make sure the kdump service is working:
# service kdump status
- If not, run these commands to turn it on and run it:
# chkconfig kdump on
# service kdump start
- Run these commands to force the crash and dump:
# echo 1 > /proc/sys/kernel/sysrq
# echo c > /proc/sysrq-trigger
This causes the kernel to panic. The system next boots into the kdump kernel. After the dump is finished and your system is brought back up with the boot kernel, check the log file at the location you specified.