Kdump failes with "kdump: get_host_ip exited with non-zero status!".
Issue
- Kdump failed to create vmcore on ssh or nfs dump target with following error.
[ 7.156567] mount[368]: mount: /var/crash: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
[ 7.160179] systemd[1]: var-crash.mount: Mount process exited, code=exited status=32
[ 7.163034] systemd[1]: var-crash.mount: Failed with result 'exit-code'.
[ 7.165646] scsi host1: ahci
[ 7.179870] systemd[1]: Failed to mount /var/crash.
[ESC[0;1;31mFAILEDESC[0m] Failed to mount /var/crash.
See 'systemctl status var-crash.mount' for details.
[ESC[0;1;33mDEPENDESC[0m] Dependency failed for Remote File Systems.
Starting dracut pre-pivot and cleanup hook...
[ 7.189112] systemd[1]: Dependency failed for Remote File Systems.
[ 7.198033] systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'.
[ 7.201065] systemd[1]: Starting dracut pre-pivot and cleanup hook...
[ 7.229421] scsi host2: ahci
[ESC[0;32m OK ESC[0m] Started dracut pre-pivot and cleanup hook.
Starting Kdump Vmcore Save Service...
[ 7.254759] systemd[1]: Started dracut pre-pivot and cleanup hook.
[ 7.264038] systemd[1]: Starting Kdump Vmcore Save Service...
[ 7.304270] scsi host3: ahci
[ 7.372312] scsi host4: ahci
/bin/kdump.sh: line 151: ip: command not found <<<----
kdump: wrong kdumpnic: ens1
kdump: get_host_ip exited with non-zero status! <<<----
[ESC[0;1;31mFAILEDESC[0m] Failed to start Kdump Vmcore Save Service.
See 'systemctl status kdump-capture.service' for details.
[ESC[0;32m OK ESC[0m] Stopped target Network is Online.
Environment
- Red Hat Enterprise Linux 8
- kexec-tools
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.