0_kdump uses dynamic makedumpfile(8) binary, which fails horribly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kexec-tools (Ubuntu) |
Fix Released
|
Medium
|
Canonical Foundations Team | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SRU Request for Lucid/Maverick/
[Impact] - When a server is configured with the /boot as a separate partition, which is the default configuration when LVM installation is selected, the kdump mechanism fails systematically.
[Development/Stable Fix] - This has been fixed in the development version with the addition of the following:
* Backport changes to fix kdump functionality. LP: #828731.
- debian/
so that if makedumpfile is statically linked, we get proper library
resolution. Thanks to Louis Bouchard <email address hidden> for
the patch. LP: #785425.
- debian/
/var is on a separate filesystem and needs to be manually mounted before
calling makedumpfile. LP: #828731.
- Depend on makedumpfile, without which the initramfs script doesn't work.
- Fix an unnecessary bashism.
- Only install the kdump initramfs script and depend on makedumpfile on
architectures that makedumpfile supports.
[Test Case] - See 'how to reproduce' below.
[Regression Potential] - Need to ensure kdump works correctly in backported versions.
--
Binary package hint: kexec-tools
This concerns kexec-tools 1:2.0.1-2ubuntu4 in Ubuntu Natty.
I am trying to get a kernel crash dump. Instead of getting a nice vmcore file in /var/crash/, I get a vmcore.log file with the following:
/root/usr/
Problem number 1: /usr/bin/
There is, however, a "makedumpfile-
Problem number 2: The 0_kdump script is hard-coded to use the dynamic binary in root:/usr/bin/. It is not at all aware of initrd:
Related branches
Changed in kexec-tools (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Canonical Kernel Team (canonical-kernel-team) |
Changed in kexec-tools (Ubuntu): | |
assignee: | Canonical Kernel Team (canonical-kernel-team) → Canonical Foundations Team (canonical-foundations) |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
The root cause for this issue is not related to kexec-tools, but is a makedumpfile issue.
The upstream version of makedumpfile that was introduced with 11.04 Natty now uses a dynamically linked makedumpfile and set aside the static version it its own separate package.
I will look to see if something can be done about that and will keep you posted. FYI, this also happens in Oneiric.