0

I am having trouble configuring kdump to properly save a vmcore dump on any media, such as path /var/crash or via ssh.

kernel 4.20.0-1.el7.elrepo.x86_64 CentOS Linux release 7.6.1810 (Core)

[root@machine ~]# cat /etc/kdump.conf
ssh root@172.20.30.142
#path /var/crash
core_collector makedumpfile -c -F --message-level 1 -d 31
default reboot

[root@machine ~]# service kdump status
Redirecting to /bin/systemctl status kdump.service
● kdump.service - Crash recovery kernel arming
   Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2019-01-11 08:34:35 EST; 3min 13s ago
  Process: 10544 ExecStart=/usr/bin/kdumpctl start (code=exited, status=0/SUCCESS)
 Main PID: 10544 (code=exited, status=0/SUCCESS)

Jan 11 08:34:35 machine.example.com dracut[10986]: drwxr-xr-x   3 root     root            0 Jan 11 08:34 var
Jan 11 08:34:35 machine.example.com dracut[10986]: drwxr-xr-x   2 root     root            0 Jan 11 08:34 var/lib
Jan 11 08:34:35 machine.example.com dracut[10986]: -rw-r--r--   1 root     root         4096 Jan 11 08:34 var/lib/random-seed
Jan 11 08:34:35 machine.example.com dracut[10986]: lrwxrwxrwx   1 root     root           11 Jan 11 08:34 var/lock -> ../run/lock
Jan 11 08:34:35 machine.example.com dracut[10986]: lrwxrwxrwx   1 root     root            6 Jan 11 08:34 var/run -> ../run
Jan 11 08:34:35 machine.example.com dracut[10986]: ========================================================================
Jan 11 08:34:35 machine.example.com dracut[10986]: *** Creating initramfs image file '/boot/initramfs-4.20.0-1.el7.elrepo.x86_64kdump.img' done ***
Jan 11 08:34:35 machine.example.com kdumpctl[10544]: kexec: loaded kdump kernel
Jan 11 08:34:35 machine.example.com kdumpctl[10544]: Starting kdump: [OK]
Jan 11 08:34:35 machine.example.com systemd[1]: Started Crash recovery kernel arming.

After forcing a crash, here's a screenshot of the console showing some kdump failures.

console screenshot

New contributor
Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Dan is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.