Verifying the Kdump Configuration
Kdump is enabled by default, and the default setting is crashkernel=auto.
Verify the Kdump configuration as follows:
- Check whether the Kdump service is running.
- Run the following commands to make the Linux kernel break down:
- After the OS is restarted, check whether the address-YYYY-MM-DD-HH:MM:SS/vmcore file is generated in /var/crash/. If yes, the Kdump configuration is correct.
To manually adjust the reserved memory size, perform the following steps:
(The following describes how to set the size of crashkernel to 512 MB.)
- Run the vi /etc/default/grub command, set crashkernel to 512M, save the configuration, and exit.
- Synchronize the modification to grub.cfg.
UEFI mode: Run the grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg command.
- On the CLI, run the reboot command to restart the OS.
- Check the Kdump status after restart. If the following information is displayed, Kdump is enabled.
- Perform a Kdump test to ensure that the Kdump function is normal.