kdump-config(8)
โจ kdump-config(8) โจ
Linux System Administrator's Manual ๐
๐ NAME
kdump-config โ configure kdump, check status, or save a vmcore file ๐ฆ
๐ฎ SYNOPSIS
kdump-config { help | test | show | status | load | unload | savecore |
propagate | symlinks {kernel-version} }
๐ DESCRIPTION
okay so kdump-config is the manager for the kdump feature in the Linux kernel ๐ฅ When a kdump enabled kernel panics, it instantly boots into a clean kernel called the kdump kernel. The memory image of the panicked kernel shows up in /proc/vmcore while the kdump kernel (or "capture kernel") is running. iconic, right? ๐ญ
kdump-config loads the kdump kernel into the current kernel, and after a kdump, it captures the vmcore image through the kdump kernel. It can take advantage of the linux-image-$(uname -r)-dbg package and will try to use makedumpfile to capture the vmcore. Then you can use the crash tool to analyze the vmcore later, no cap ๐ง
kdump-config exits with 0 on success and 1 on failure. Simple, clean, periodt โจ
๐ธ COMMANDS
helpโ prints a usage summary ๐testโ figures out the parameters that would be used to load the kdump kernel, but doesn't actually load it. Super useful for checking your config settings before you commit ๐showโ shows the current parameters and the saved kexec command from the lastkdump-config load๐statusโ checks/sys/kernel/kexec_crash_loadedor/sys/kernel/fadump_register(depending on the dump mode) and prints a matching message ๐loadโ loads the kdump kernel, or registers it if you're using firmware assisted dump (fadump) ๐ฅunloadโ unloads the kdump kernel, or unregisters it if you're using firmware assisted dump (fadump) ๐ซถsavecoreโ if/proc/vmcoreexists, saves it usingmakedumpfile๐propagateโ sends your public ssh key to a remote host so you can connect without a password ๐ฆsymlinks {kernel-version}โ verifies and creates thevmlinuzandinitrd.imglinks in/var/lib/kdumpfor the kernel version you give it. If the targetinitrd.imgfile is missing, it creates that too โจ
๐ FILES
/etc/init.d/kdump-toolsโ the init script that automatically loads a kdump kernel, or saves a vmcore and reboots ๐ฎ/etc/default/kdump-toolsโ the configuration file ๐/var/crash/kernel_linkโ a link to the current debug kernel ๐/var/crash/kexec_cmdโ the lastkexec_cmdthatkdump-configran ๐ธ/var/lib/kdump/vmlinuzโ a symbolic link pointing to the current kernel file in/boot๐/var/lib/kdump/initrd.imgโ a symbolic link pointing to theinitrd.imgfile with the current kernel version in/boot๐ง
๐จ DIAGNOSTICS
Okay, these are the error messages you might run into, and what they actually mean. Don't panic, bestie ๐
USE_KDUMP is not set or zeroโ the variableUSE_KDUMPin/etc/default/kdump-toolsis0. To use kdump, open the file and change the value to1๐kdump is not supported by this kernelโ the file/sys/kernel/kexec_crash_loadeddoesn't exist. This means the running kernel either wasn't configured to support kdump, or it was booted without acrashkernel=commandline parameter ๐no crashkernel= parameter in the kernel cmdlineโ acrashkernel=commandline parameter wasn't used when the running kernel booted. You'll need to add acrashkernel=parameter to your/etc/lilo.conf,/etc/elilo.conf, or grub/boot/grub/menu.lstfile and reboot before kdump will work. Check the installed READMEs for suggestions ๐KDUMP_KERNEL does not exist: $KDUMP_KERNELโ aKDUMP_KERNELwas set in/etc/default/kdump-tools, but it can't be found ๐ญKDUMP_INITRD does not exist: $KDUMP_INITRDโ aKDUMP_INITRDwas set in/etc/default/kdump-tools, but it can't be found ๐ญno KDUMP_KERNEL in $KDUMP_DEFAULTS and can't find a kdump package directory in /usr/libโ no kdump kernel could be found anywhere ๐ซfound a linux-kdump package in $KDUMP_PKG_DIR but can't find a kdump kernel in $KDUMP_PKG_DIRโ this one means the linux-kdump package is broken or installed wrong ๐งno kdump initrd image: $KDUMP_INITRDโan initrd will not be used: a kdump kernel was found, but its matching initrd wasn't ๐ฅบkdump kernel relocation address does not match crashkernel= parameterโ on non-relocatable architectures, the kdump kernel has to be built with a predetermined start address. This message means that start address doesn't match the one in thecrashkernel=parameter ๐ โโ๏ธfailed to load kdump kernelโ kexec said it couldn't load the kdump kernel ๐failed to unload kdump kernelโ kexec said it couldn't unload the kdump kernel. Runkexec -udirectly for more details ๐makedumpfile failed, falling back to 'cp'โ the kdump-tools init script tried to save/proc/vmcorewithmakedumpfile, the save failed, and it's tryingcpinstead ๐ธfailed to save vmcore in $KDUMP_STAMPDIRโ bothmakedumpfileand thecpfallback failed. This usually happens when pathnames are wrong or the disk is full ๐Invalid argument : missing kernel versionโ thesymlinkscommand was used with a kernel version that isn't installed on this server ๐Invalid symlink : {symbolic link}โ the listed symbolic link is missing, broken, or pointing at the wrong version ๐Cannot change symbolic links when kdump is loadedโ the defined symbolic links are already in use. You have to unload kdump before using thesymlinkscommand ๐ซUnable to locate kernel hookโ the kdump-tools script that creates the smallerinitrd.imgfiles is missing from/usr/kernel/postinst.d๐งฉInvalid kernel version : {kernel version}โ the kernel version you gave thesymlinkscommand doesn't exist ๐คทโโ๏ธfadump is not configured in this kernel.โ Firmware Assisted Dump (fadump) isn't available on this platform ๐ฅSSH and NFS cannot be defined concurrentlyโ both variables are set in/etc/default/kdump-tools. You have to pick one or the other ๐ โโ๏ธUnable to mount remote NFS directory {directory}. Cannot save coreโ the remote NFS server isn't letting this server mount the directory to save the crash dump ๐ซUnable to write to the remote NFS directory {directory}. Cannot save coreโ the remote NFS directory mounts fine, but this server can't write files to it ๐ญmakedumpfile --dump-dmesg failed. dmesg content will be unavailableโ the command to capture the dmesg buffer failed, so it won't show up in the crash directory ๐ฅบUnable to reach remote server {server}. No reason to continueโ kdump-tools is set up for a remote dump, but the remote server can't be reached ๐กmakedumpfile scp failed. The vmcore file will not be availableโmakedumpfileworked, but the resulting file couldn't be copied over SSH to the remote server ๐Remote ssh dump is not configured. No reason to propagate"โ you ran thepropagatecommand, but kdump isn't set up for a remote dump ๐
๐ SEE ALSO
/usr/share/doc/kdump-tools/README/usr/share/doc/kdump-tools/README.Debiankdump-tools(5),kexec(8),crash(8),gdb(1),makedumpfile(8)๐
๐ AUTHOR
Written by Terry Loftin <terry.loftin@hp.com> and Louis Bouchard <louis.bouchard@ubuntu.com> ๐ซถ
kdump-tools v1.6.7-2 ยท Jul 2020 ยท kdump-config(8) ๐ธโจ๐ bestie, you're officially a kdump expert now ๐ฆ
๐ฆ where this page comes from
- debian bookworm: kdump-tools 1:1.8.1
- debian trixie: kdump-tools 1:1.10.7
- ubuntu jammy: kdump-tools 1:1.6.10ubuntu1
- ubuntu jammy: kdump-tools 1:1.6.10ubuntu2.2
- ubuntu noble: kdump-tools 1:1.10.3ubuntu2
- ubuntu questing: kdump-tools 1:1.10.7ubuntu2
- ubuntu resolute: kdump-tools 1:1.10.7ubuntu3
- ubuntu stonking: kdump-tools 1:1.10.7ubuntu5
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms