Questo contenuto non è disponibile nella lingua selezionata.
Chapter 21. Using early kdump to capture boot time crashes
Early kdump is a feature of the kdump
mechanism that captures the vmcore
file if a system or kernel crash occurs during the early phases of the boot process before the system services start. Early kdump loads the crash kernel and the initramfs
of crash kernel in the memory much earlier.
A kernel crash can sometimes occur during the early boot phase before the kdump
service starts and is able to capture and save the contents of the crashed kernel memory. Therefore, crucial information related to the crash that is important for troubleshooting is lost. To address this problem, you can use the early kdump
feature, which is a part of the kdump
service.
21.1. Enabling early kdump Copia collegamentoCollegamento copiato negli appunti!
The early kdump
feature sets up the crash kernel and the initial RAM disk image (initramfs
) to load early enough to capture the vmcore
information for an early crash. This helps to eliminate the risk of losing information about the early boot kernel crashes.
Prerequisites
- An active RHEL subscription.
-
A repository containing the
kexec-tools
package for your system CPU architecture. -
Fulfilled
kdump
configuration and targets requirements. For more information see, Supported kdump configurations and targets.
Procedure
Verify that the
kdump
service is enabled and active:systemctl is-enabled kdump.service && systemctl is-active kdump.service
# systemctl is-enabled kdump.service && systemctl is-active kdump.service enabled active
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If
kdump
is not enabled and running, set all required configurations and verify thatkdump
service is enabled.Rebuild the
initramfs
image of the booting kernel with theearly kdump
functionality:dracut -f --add earlykdump
# dracut -f --add earlykdump
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
rd.earlykdump
kernel command line parameter:grubby --update-kernel=/boot/vmlinuz-$(uname -r) --args="rd.earlykdump"
# grubby --update-kernel=/boot/vmlinuz-$(uname -r) --args="rd.earlykdump"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Reboot the system to reflect the changes:
reboot
# reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that
rd.earlykdump
is successfully added andearly kdump
feature is enabled:Copy to Clipboard Copied! Toggle word wrap Toggle overflow