Kernel crash dump (vmcore) not getting generated inside partition mounted under /var/crash.
Environment
- Red Hat Enterprise Linux Server (RHEL) 5.
- Red Hat Enterprise Linux Server (RHEL) 6.
- Red Hat Enterprise Linux Server (RHEL) 7.
Issue
vmcorenot getting generated inside the partition mounted under/var/crash.
Resolution
- Re-create the
kdump initrdimage after mounting the/var/crashpartition.
Root Cause
- The
/var/crashmount point was defined after the generation of thekdump initrdimage. Thus thekdump initrdimage is not updated with changes in/var/crashpath.
Diagnostic Steps
-
The
kdumpis configured to generate vmcore in/var/crashas per/etc/kdump.confgiven below:path /var/crash core_collector makedumpfile -c --message-level 1 -d 31 -
Contents of
/etc/fstab:/dev/mapper/VolGroup00-lv_root / ext4 defaults 1 1 /dev/mapper/VolGroup00-crash /var/crash ext4 defaults 1 2But
vmcoreis getting generated in side/dev/mapper/VolGroup00-lv_rootwhich is the default path for/var/crashbefore/var/crashmount point was defined.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
