Generate a kernel panic and then verify that the kernel dump is collected correctly.
Execute the following command to generate a kernel panic:
# echo c > /proc/sysrq-trigger
When a kernel panic occurs, a kernel dump is collected, and then the host restarts.
After the host restarts, verify that a kernel dump (vmcore file) was created in the /var/crash/hdlm directory.
# ls -lR /var/crash/ /var/crash/: total 0 drwxr-xr-x 2 root root 4096 mmm dd hh:mm 127.0.0.1-yyyy-mm-dd-hh:mm:ss /var/crash/hdlm/127.0.0.1-yyyy-mm-dd-hh:mm:ss: total 58732 -r-------- 1 root root 60074832 mmm dd hh:mm vmcore -rw-r--r--. 1 root root 63270 mmm dd hh:mm vmcore-dmesg.txt #
Specification of the necessary settings for using the kdump function is now finished.