Kdump service fails if dracut option 'add_dracutmodules+=earlykdump' is set in dracut configuration file.

Solution Verified - Updated -

Issue

  • Kdump service fails with an error "dracut: dracut module 'earlykdump' cannot be found or installed"
# cat /etc/dracut.conf.d/earlykdump.conf 
add_dracutmodules+=earlykdump

# kdumpctl restart
kexec: unloaded kdump kernel
Stopping kdump: [OK]
Detected change(s) in the following file(s):

  /etc/kdump.conf
Rebuilding /boot/initramfs-4.18.0-32.el8.x86_64kdump.img
dracut: dracut module 'earlykdump' cannot be found or installed.
mkdumprd: failed to make kdump initrd
Starting kdump: [FAILED]

# systemctl status kdump.service
● kdump.service - Crash recovery kernel arming
   Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-01-02 18:54:36 IST; 1min 22s ago
  Process: 1522 ExecStop=/usr/bin/kdumpctl stop (code=exited, status=0/SUCCESS)
  Process: 21209 ExecStart=/usr/bin/kdumpctl start (code=exited, status=1/FAILURE)
 Main PID: 21209 (code=exited, status=1/FAILURE)

Jan 02 18:54:35 rhel8.beta dracut[26937]: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
Jan 02 18:54:35 rhel8.beta dracut[26937]: 95nfs: Could not find any command of 'rpcbind portmap'!
Jan 02 18:54:35 rhel8.beta dracut[26937]: dracut module 'resume' will not be installed, because it's in the list to be omitted!
Jan 02 18:54:36 rhel8.beta kdumpctl[21209]: dracut: dracut module 'earlykdump' cannot be found or installed.
Jan 02 18:54:36 rhel8.beta dracut[26937]: dracut module 'earlykdump' cannot be found or installed.
Jan 02 18:54:36 rhel8.beta kdumpctl[21209]: mkdumprd: failed to make kdump initrd
Jan 02 18:54:36 rhel8.beta kdumpctl[21209]: Starting kdump: [FAILED]
Jan 02 18:54:36 rhel8.beta systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
Jan 02 18:54:36 rhel8.beta systemd[1]: kdump.service: Failed with result 'exit-code'.
Jan 02 18:54:36 rhel8.beta systemd[1]: Failed to start Crash recovery kernel arming.

Environment

  • Red Hat Enterprise Linux 8.0
  • 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