• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Understanding kdump Configuration file /etc/kdump.conf

By admin

The configuration file for Kdump is /etc/kdump.conf. The default target location for the vmcore is the /var/crash directory on the local file system, which is represented as follows:

path /var/crash

To write to a different local directory, edit the path directive and provide the absolute path. Example:

path /

To write directly to a device, edit the raw directive and specify the device name. Example:

raw /dev/sda1

To write to a remote system by using NFS, use the nfs directive followed by the FQDN of the remote system, then a colon (:), and then the directory path. Example:

nfs host01.example.com:/export/crash

To write to a remote machine by using SSH, use the ssh directive followed by a valid username, the @ sign, and the host name, in that order. Example:

ssh root@host02.example.com

Modify the filtering level for the vmcore dump using the core_collector directive in the /etc/kdump.conf file. To exclude certain pages from the dump, use the -d [value] parameter where [value] is a sum of values of the pages that you want to exclude. Use the following values for the pages:

  • 1: zero page
  • 2: cache page
  • 4: cache private
  • 8: user data
  • 16: free page

The recommendation is to exclude all these pages as follows. Add the values (the total for all is 31) and provide the sum as the argument to the -d (dump level) option:

core_collector makedumpfile -d 31 –c

The -c option enables dump file compression. To exclude only zero (1) and free (16) pages:

core_collector makedumpfile -d 17 –c

The default action to take if dumping to the intended target fails is to reboot. Other possible actions are halt, poweroff, shell, or dump_to_rootfs, which means dump vmcore to rootfs from initramfs context and reboot. To change this, set the default directive in /etc/kdump.conf, as in this example:

default poweroff
CentOS / RHEL 7 : How to configure kdump
CentOS / RHEL 6 : How to configure kdump

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to Verify a Lun is in Active/Optimized Mode when ALUA Is Configured on Storage
  2. CentOS / RHEL 7 : How to enable or disable automatic updates (via packagekit)
  3. How to Create a GFS2 Formatted Cluster File System
  4. How to find all the sparse files in Linux
  5. How to Switch Password Algorithm on CentOS/RHEL
  6. How to Configure rsyslog to Filter/discard Specific IP Address in CentOS/RHEL 6,7
  7. UNIX / Linux : What Is a Shell? What are different Shells?
  8. How to enable CUPS Debugging on CentOS/RHEL
  9. How to Change Password Of An LXC Container User Account
  10. How to Password Protect GRUB2 in Oracle Enterprise Linux 7

You May Also Like

Primary Sidebar

Recent Posts

  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary