How to permanently disable crashkernel?

Hi, is there a way to permanently disable crashkernel?

We’ve stopped the service and set “crashkernel=no” in grubby by running the following commands:

systemctl stop kdump
systemctl disable kdump
grubby --update-kernel=ALL --args="crashkernel=no"

Unfortunately, upon kernel update, crashkernel is reactivated.

There was a thread about this last year expressing hope that the issue would be resolved in 9.4 but persists for us still in 9.5.

1 Like

This is how I do it:

Edit /etc/kdump.conf and change this from yes to no:

auto_reset_crashkernel no

Stop, disable and mask kdump service:

systemctl stop kdump
systemctl disable kdump
systemctl mask kdump

Upgrade grub config and reboot to recover lost memory
that was reserved for crashkernel:

grub2-mkconfig --update-bls-cmdline -o /boot/grub2/grub.cfg

That should do it.

1 Like