Configure kdump memory reservation
Configure the memory reservation for kdump. The kdump-utils package provides default crashkernel= values that you can use as a reference when setting memory manually.
Before you begin
- You have root permissions on the system.
- You have fulfilled
kdumprequirements for configurations and targets. For details, see Supported kdump configurations and targets. - You have installed the
ziplutility if it is the IBM Z system.
About this task
The automatic memory allocation for kdump varies based on the system hardware architecture and available memory size. For example, on AMD64 and Intel 64-bit architectures, the default value for the crashkernel= parameter works only when the available memory is more than 2 GB. The kdump-utils utility configures the following default memory reserves on AMD64 and Intel 64-bit architecture:
crashkernel=2G-64G:256M,64G-:512M
You can also run kdumpctl estimate to get an approximate value without triggering a crash. The estimated crashkernel= value might not be an exact one but can serve as a reference to set an appropriate crashkernel= value.
Note that the crashkernel=1G-4G:192M,4G-64G:256M,64G:512M option in the boot command line is no longer supported on RHEL 10 and later releases.
The commands to test kdump configuration cause the kernel to crash with data loss. Follow the instructions with care. Do not use an active production system to test the kdump configuration.
Procedure
Results
Cause the kernel to crash by activating the sysrq key. The address-YYYY-MM-DD-HH:MM:SS/vmcore file is saved to the target location as specified in the /etc/kdump.conf file. If you select the default target location, the vmcore file is saved in the partition mounted under /var/crash/.
- Activate the
sysrqkey to boot into thekdumpkernel:# echo c > /proc/sysrq-triggerThe command causes kernel to crash and reboots the kernel if required.
- Display the
/etc/kdump.conffile and check if thevmcorefile is saved in the target destination.See the
grubby(8)man page on your system for more information.