Este conteúdo não está disponível no idioma selecionado.

Chapter 18. Enabling kdump


Enable or disable kdump functionality on a specific kernel or all installed kernels in Red Hat Enterprise Linux. Test and validate the kdump functionality regularly to ensure it works correctly.

18.1. Enabling kdump for all installed kernels

To enable the kdump service for all kernels installed on the machine, enable kdump.service after the kdump-utils package is installed.

Prerequisites

  • You have root permissions on the system.

Procedure

  1. Add the crashkernel= command-line parameter to all installed kernels:

    # grubby --update-kernel=ALL --args="crashkernel=xxM"

    xxM is the required memory in megabytes.

  2. In terms of UKI, add the crashkernel= command-line parameter to all installed UKIs by copying an add-on associated with the required argument from /lib/modules/$(uname -r)/vmlinuz-virt.efi.extra.d/ to /boot/efi/loader/addons/.
  3. Reboot the system:

    # reboot
  4. Enable the kdump service:

    # systemctl enable --now kdump.service

Verification

  • Check that the kdump service is running:

    # systemctl status kdump.service
    kdump.service - Crash recovery kernel arming
         Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: disabled)
         Active: active (live)

18.2. Enabling kdump for a specific installed kernel

To enable the kdump service for a specific installed kernel, configure the crashkernel parameter in GRUB for the selected kernel and enable the service to capture crash dumps.

Prerequisites

  • You have root permissions on the system.

Procedure

  1. List the kernels installed on the machine:

    # ls -a /boot/vmlinuz-*
    /boot/vmlinuz-0-rescue-2930657cd0dc43c2b75db480e5e5b4a9
    /boot/vmlinuz-6.12.0-55.9.1.el10_0.x86_64
    /boot/vmlinuz-6.12.0-55.9.1.el10_0.x86_64
  2. Add a specific kdump kernel to the system’s Grand Unified Boot Loader (GRUB) configuration:

    For example:

    # grubby --update-kernel=vmlinuz-6.12.0-55.9.1.el10_0.x86_64 --args="crashkernel=xxM"

    xxM is the required memory reserve in megabytes.

  3. In terms of UKI, add the crashkernel= command-line parameter to a specific UKI by copying an add-on associated with the required argument from /lib/modules/$(uname -r)/vmlinuz-virt.efi.extra.d/ to /boot/efi/EFI/Linux/<machine-id>-<kernel-version>.efi.extra.d/.
  4. Enable the kdump service:

    # systemctl enable --now kdump.service

Verification

  • Check that the kdump service is running:

    # systemctl status kdump.service
    kdump.service - Crash recovery kernel arming
         Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: disabled)
         Active: active (live)

18.3. Disabling the kdump service

You can stop the kdump service and disable the service from starting on your Red Hat Enterprise Linux systems.

Prerequisites

Procedure

  1. To stop the kdump service in the current session:

    # systemctl stop kdump.service
  2. To disable the kdump service:

    # systemctl disable kdump.service
    Warning

    You must set kptr_restrict=1 as default. When kptr_restrict is set to (1) as default, the kdumpctl service loads the crash kernel regardless of whether the Kernel Address Space Layout (KASLR) is enabled.

    If kptr_restrict is not set to 1 and KASLR is enabled, the contents of /proc/kore file are generated as all zeros. The kdumpctl service fails to access the /proc/kcore file and load the crash kernel. The kexec-kdump-howto.txt file displays a warning message, which suggest you to set kptr_restrict=1. Verify for the following in the sysctl.conf file to ensure that kdumpctl service loads the crash kernel:

    • Kernel kptr_restrict=1 in the sysctl.conf file.
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat
Voltar ao topo