FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

LinkBack Thread Tools
Old 02-10-2011, 12:42 PM
Cliff Wickman
Default How do debug the kdump kernel using a Xen dump-core file?

Hi Olaf,

On Thu, Feb 10, 2011 at 02:07:02PM +0100, Olaf Hering wrote:
> Hello,
> 'xm dump-core -L <domain>' generates a coredump of a Xen4 HVM guest, and
> crash is able to poke around in this coredump.
> Thanks for that.
> But: How can I use crash to debug the crash/kdump kernel itself?
> I did a 'echo c > /proc/sysrq-trigger' and want to look at the crash
> kernel, not the normal kernel.
> Olaf

You can make the crash kernel come all the way up to multi-user mode.
Then run crash. I haven't run crash under the crash kernel, but I don't
see why it wouldn't work.

I use this method with a SLES system:
edit /etc/sysconfig/kdump and set KDUMP_SAVEDIR to a
non-existing dir:

Or this seems to work with a RHEL6 system:
- edit /etc/init.d/kdump and comment out the makedumpfile and restart
lines; just make it exit
- modify script /sbin/mkdumprd so that it does not save a
dump, but goes to user mode:
< emit " $CORE_COLLECTOR /proc/vmcore $VMCORE-incomplete...
> emit "# $CORE_COLLECTOR /proc/vmcore
> $VMCORE-incomplete...
< emit " exitcode=$?"
> emit " exitcode=1"
< emit " $FINAL_ACTION"
> emit " echo bye"
and /etc/init.d/kdump to not call save_core in the crash kernel:
if [ -s /proc/vmcoreXXX ]; then

Cliff Wickman
(651) 683-3824

Crash-utility mailing list

Thread Tools

All times are GMT. The time now is 09:54 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org