KDUMPCTL(8)

๐Ÿ“ฆ
version 1.0.61 ยท 3 versions
, in centos-stream 10, fedora 43, fedora 44

๐Ÿ’– NAME ๐Ÿ’–

kdumpctl โ€” control interface for kdump ๐Ÿ’…

okay so bestie, this is a page from the System Manager's Manual (that's section 8, the big-girl system administration one), and it's literally just "I control kdump, and I'm not sorry about it." ๐ŸŽ€


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

kdumpctl COMMAND

โœจ DESCRIPTION โœจ

so kdumpctl is the check-or-control bestie for the kdump service. ๐Ÿซถ

but ngl? in most cases you should use systemctl to start / stop / enable the kdump service instead. like, that's the normal way, fr fr.

kdumpctl is still here though, giving you more details for debugging and a cute little helper to set up ssh key authentication. it's giving โœจtool for when things get realโœจ. iconic behaviour, honestly.


๐Ÿ‘‘ COMMANDS ๐Ÿ‘‘

  • start โ€” starts the service. simple, clean, slay. โœจ
  • stop โ€” stops the service. โœ‹
  • status โ€” prints the current status of kdump service. it returns a non-zero value if kdump is not operational, so watch that exit code like it's your situationship. ๐Ÿ’€
  • restart โ€” is equal to start; stop. that's it, that's the whole personality. ๐Ÿ”
  • reload โ€” reload the crash kernel image and initramfs without triggering a rebuild. no rebuild, no drama, just vibes. ๐Ÿ’…
  • rebuild โ€” rebuild the crash kernel initramfs. ๐Ÿ› ๏ธ
  • propagate โ€” helps to setup key authentication for ssh storage, since it's impossible to use password authentication during kdump. like, genuinely impossible, so we do keys instead. ๐Ÿ”‘โœจ
  • showmem โ€” prints the size of reserved memory for the crash kernel, in megabytes. ๐Ÿงฎ
  • estimate โ€” estimate a suitable crashkernel value for the current machine. this is a best-effort estimate. it will print a recommended crashkernel value based on the current kdump setup, and list some details of memory usage. ๐Ÿซถ
  • get-default-crashkernel โ€” return the default crashkernel value provided by kdump-utils. here's your default, babes. ๐ŸŽ
  • reset-crashkernel [--kernel=path_to_kernel] โ€” reset crashkernel to the default value recommended by kdump-utils. if no kernel is specified, will reset KDUMP_KERNELVER if it's defined in /etc/sysconfig/kdump, or the current running kernel's crashkernel value if KDUMP_KERNELVER is empty.

you can also specify --kernel=ALL and --kernel=DEFAULT, which have the same meaning as grubby's kernel-path=ALL and kernel-path=DEFAULT. ๐Ÿ‘‘

ppc64le supports FADump and supports an additional [--fadump=[on|off|nocma]] parameter to toggle FADump on/off. ๐ŸŒธ

Note: The memory requirements for kdump varies heavily depending on the used hardware and system configuration. Thus the recommended crashkernel might not work for your specific setup. Please test if kdump works after resetting the crashkernel value. โš ๏ธ
  • test [--force] โ€” test the kdump by actually trigger the system crash & dump, and check if a vmcore can really be generated successfully based on current config and environment. after system reboot back to normal, check the test result by "kdumpctl status". note, fadump is not supported. ๐Ÿ˜ญ

if the optional parameter [--force] is provided, there will be no confirmation before triggering the system crash. dangerous though โ€” this option is meant for automation testing. ๐Ÿ’€๐Ÿ”ฅ

  • setup-crypttab โ€” add the 'link-volume-key' option to /etc/crypttab so vmcore can be saved to LUKS-encrypted disk volume. for more info on link-volume-key option, please "man crypttab". ๐Ÿ”

this step is optional. if kdump.service can start successfully, there is no need for this step. you can confirm if this step is needed by running "kdumpctl restart". if you need to input any passpharse to unlock the the encrypted volume, then please run "kdumpctl setup-crypttab". ๐Ÿ—๏ธ

Note: this subcommand is only helpful to x86_64 for now. ๐Ÿ™ˆ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

kdump.conf(5), mkdumprd(8)

go read those too, bestie, they're right there. ๐Ÿซถ


and that's the whole page, periodt. ๐Ÿ’… this cutie came from kdump-utils, dated 2015-07-13 โ€” still serving looks all these years later. ๐ŸŒˆ๐Ÿ‘‘ stay safe out there, and don't --force a system crash without meaning it, fr fr. ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from