Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 459625

Summary: kdump console trace not preserved with dump
Product: Red Hat Enterprise Linux 5 Reporter: Rich Johnson <richard.johnson>
Component: kexec-toolsAssignee: Neil Horman <nhorman>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-20 18:34:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rich Johnson 2008-08-20 18:01:08 UTC
Description of problem:
  kdump console trace preserved with dump.  The console trace contains info (such as script output) useful for debugging problems that may occur during kdump processing.  This info is not kept with the vmcore and is lost with the reboot.

Version-Release number of selected component (if applicable):
  kexec-tools-1.102pre-21.el5_2.2

How reproducible:
  Trigger a kdump.
  
Actual results:
  Dump directory created containing only vmcore.

Desired results:
  Dump directory created containing:
   - vmcore
   - console trace of the dump process.

Additional info:
  dmesg can be used in a pre/post script to optain a partial trace.
  Probably an enhancement.

Avoidance:  
  Use kernel command line to echo console to aserial port and use an external device to capture the trace.

Comment 1 Rich Johnson 2008-08-20 18:27:07 UTC
(In reply to comment #0)
> Description of problem:
>   kdump console trace preserved with dump.  The console trace contains info
[...snip...]
Of course that should be:  kdump console trace *not* preserved with dump...

Comment 2 Neil Horman 2008-08-20 18:34:39 UTC
kdump captures the vmcore, not the log of the capture session.  Given that recording of the log is most usefull for debugging of kdump setups, you will nominally have access to a serial console which can log the session independently.  If you do want to grab the log from within a kdump session, this can be easily implemented using kdump_post and dmesg.

Comment 3 Rich Johnson 2008-08-20 19:07:05 UTC
Unfortunately, it's not quite so easy. 

A dmesg in the kdump_post doesn't capture everything that's been sent to the console--e.g. command output from the scripts.  This could be captured separately  but you'd lose the timing interplay with the kernel messages.  Also, dmesg gives only the current ring buffer contents.  It does not provide the full session.

My concern is more with forensic analysis of a failure at a customer site where the serial output is not necessarily collected.