How do debug the kdump kernel using a Xen dump-core file?
On Thu, Feb 10, 2011 at 02:07:02PM +0100, Olaf Hering wrote:
> '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.
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
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
< 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