Linux change the directory for kdump to put its vmcore files

Q. How can I change the directory for kdump to put its vmcore files under CentOS Linux 5.0 operating system?

ADVERTISEMENTS

A. Kdump is a kexec based crash dumping mechansim for Linux. Kdump functionality is broken mainly in two components, user space and kernel space. Kdump support included in all modern Linux distro such as Suse, RHEL, CentOS and Debian. By default, kdump dumps its vmcore files in /var/crash directory. You can easily change this location by modifying kdump configuration file /etc/kdump.conf.

Change the directory for kdump

Open config file:
# vi /etc/kdump.conf
You need to set path using path command:
path
You need to append path to the filesystem device which you are dumping to. Ignored for raw device dumps. If unset, will default to /var/crash. Set new path to /dumps directory:
path /dumps
Save and close the file.

Further readings:

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.