Reduce the size of a kernel dump file
This document (7006319) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
Situation
If the dump file needs to be transferred somewhere else for analysis, the transfer or upload might take a very long time, and you may wish to reduce the size of the file.
Resolution
You need to install the kernel debuginfo RPM, matching the same kernel version and flavor of the kernel, the dump file was taken from. Then run makedumpfile specifying another dump level to produce a new smaller dump file. Here's an example of the command:
makedumpfile -d 31 -x /usr/lib/debug/boot/vmlinux-4.12.14-122.136-default.debug /var/crash/2022-11-17-17\:41/vmcore /tmp/vmcore-reduced
-d lets you specify the dump level. The smallest, 31, is sufficient for analysis in most cases. The support engineers may ask for this value to be changed if required for a specific case.
-x specifies the location of the vmlinux debug file. After the installation of the kernel debuginfo RPM, the vmlinux debug file (vmlinux-kernelversion-kernelflavor.debug) is located per default in /usr/lib/debug/boot.
The vmlinux file is followed by the dump file location as specified in KDUMP_SAVEDIR in /etc/sysconfig/kdump .
The last parameter is the new, stripped down version of the dump file.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7006319
- Creation Date: 21-Jun-2010
- Modified Date:17-Nov-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com