kdumpctl command fails to rebuild the crash kernel initramfs

Solution Verified - Updated -

Issue

  • kdumpctl command fail to rebuild the crash kernel initramfs.
# kdumpctl rebuild
kdump: Rebuilding /boot/initramfs-4.18.0-193.el8.x86_64kdump.img
dracut: systemd-initrd needs systemd in the initramfs
dracut: dracut module 'squash' depends on 'systemd-initrd', which can't be installed
dracut: dracut module 'kdumpbase' depends on 'squash', which can't be installed
dracut: dracut module 'kdump-reporter' depends on 'kdumpbase', which can't be installed
dracut: dracut-systemd needs systemd-initrd in the initramfs
dracut: dracut module 'kdumpbase' cannot be found or installed.
kdump: mkdumprd: failed to make kdump initrd
  • kdump service fail to start.
# systemctl status kdump
● kdump.service - Crash recovery kernel arming
   Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2023-03-03 15:32:52 JST; 29min ago
 Main PID: 200461 (code=exited, status=1/FAILURE)

 3月 03 15:32:52 test dracut[200771]: dracut-systemd needs systemd-initrd in the initramfs
 3月 03 15:32:52 test dracut[200771]: dracut module 'earlykdump' will not be installed, because it's in the list to be omitted!
 3月 03 15:32:52 test dracut[200771]: memstrack is available
 3月 03 15:32:52 test kdumpctl[200745]: dracut: dracut module 'kdumpbase' cannot be found or installed.
 3月 03 15:32:52 test dracut[200771]: dracut module 'kdumpbase' cannot be found or installed.
 3月 03 15:32:52 test kdumpctl[200463]: kdump: mkdumprd: failed to make kdump initrd
 3月 03 15:32:52 test kdumpctl[200463]: kdump: Starting kdump: [FAILED]
 3月 03 15:32:52 test systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
 3月 03 15:32:52 test systemd[1]: kdump.service: Failed with result 'exit-code'.
 3月 03 15:32:52 test systemd[1]: Failed to start Crash recovery kernel arming.

Environment

  • Red Hat Enterprise Linux release 8.2 (Ootpa)
  • kexec-tools

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content