Linux change the directory for kdump to put its vmcore files

Linux change the directory for kdump to put its vmcore files

To change the directory for kdump to put its vmcore files on a Linux system, you will need to edit the /etc/kdump.conf file.

The kdump utility is used to capture kernel crash dumps on a Linux system. When the kernel crashes, kdump captures a vmcore file, which is a snapshot of the kernel's memory at the time of the crash. This file can be used for debugging and analysis of the kernel crash.

By default, kdump stores the vmcore files in the /var/crash directory. To change this directory, you can edit the path option in the /etc/kdump.conf file. For example:

refer‮al:ot ‬utturi.com
path /new/kdump/directory

Replace /new/kdump/directory with the path to the directory you want kdump to use.

It's important to note that the path option must be set to an absolute path, not a relative path.

You will also need to make sure that the kdump service is restarted after making the changes to the /etc/kdump.conf file. You can do this by running the following command:

sudo systemctl restart kdump

This will restart the kdump service and apply the changes you made to the /etc/kdump.conf file.

It's a good idea to periodically check the kdump directory for vmcore files and clean up any old or unnecessary files to keep the directory from filling up.

Created Time:2017-10-29 22:09:01  Author:lautturi