How to disable kdump in RHOCP 4?

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4

Issue

  • Is it possible to disable kdump on RHCOS nodes?

Resolution

  • By default, the kdump service is disabled on RHCOS nodes.

  • It can be disabled in two ways:

Method 1

Delete the MachineConfig that enables kdump to disable it on RHCOS nodes:

$ oc delete mc <name-of-machineconfig>

Method 2

Disable the kdump service manually:

  • SSH into the nodes:
$ ssh -i <private key> core@[node_name]
[core@node_name ~]$ sudo -i
  • Delete the applied kernel argument:
# rpm-ostree kargs --delete='crashkernel=256M'
  • Stop and disable the kdump systemd service:
# systemctl stop kdump
# systemctl disable kdump
  • Reboot the system:
# systemctl reboot

Diagnostic Steps

  • Verify if kdump is enabled on the nodes.
# systemctl status kdump

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments