IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

All Products: How to configure Kdump for Linux kernel crash dump

All Products: How to configure Kdump for Linux kernel crash dump

Environment

  • All Products
  • Red Hat: All supported versions
  • CentOS: All supported versions

Objective

To enable and configure Kdump for Linux kernel crash dump collection

Resolution

The Kdump service is installed and enabled by default on newer RHEL 7+ systems
 
  1. Check if kexec is installed and kdump is active
    rpm -q kexec-tools
    systemctl status kdump.service
  2. Enabling Kdump 
    • Install the kexec tools
      yum install kexec-tools
    • Reserve memory for kdump in the grub config file (/etc/default/grub) by appending "crashkernel=auto" to the following line:
      GRUB_CMDLINE_LINUX="...crashkernel=auto..."
    • Update the grub configuration file:
      grub2-mkconfig -o /boot/grub2/grub.cfg
  3. Enable and start the kdump service:
    systemctl enable kdump.service
    systemctl start kdump.service
  4. Once a system crash occurs, please zip any vmcore dump files from their default location:
    tar cvfz /tmp/crash-logs.tgz /var/crash
  • If the vmcore files are missing, please check if the path for writing crash logs has been modified in the config file: /etc/kdump.conf

Additional Notes

The steps enable Kdump with default options; to customize Kdump please check the following Red Hat KB

Was this article helpful? Yes No
100% helpful (1/1)
Article Information
Author:
Creation Date:
‎01-18-2022
Views:
2736