[Crash-utility] how to generate xen hypervisor core though kdump or other way?

Jun Hu duanshuidao at hotmail.com
Thu Oct 18 10:23:45 UTC 2012


Hi Daniel:

how are you going , daniel?

From: Herbert van den Bergh 
Sent: Wednesday, October 03, 2012 11:27 PM
To: Discussion list for crash utility usage, maintenance and development ; hu jun 
Cc: daniel.kiper at oracle.com 
Subject: Re: [Crash-utility] how to generate xen hypervisor core though kdump or other way?

Use the crash --hyper flag.

Thanks,
Herbert.


On 10/3/12 3:56 AM, hu jun wrote:

  yes, it works well.


  title Xen -- SUSE Linux Enterprise Server 11 SP2 - 3.0.38-0.5
  root (hd0,0)
  kernel /boot/xen.gz vga=mode-0x317 crashkernel=128M at 16M
  module /boot/vmlinuz-3.0.38-0.5-xen root=/dev/disk/by-id/ata-WDC_WD3200BEVS-08VAT2_WD-WXD0AA9V4924-part1 resume=/dev/disk/by-id/ata-WDC_WD3200BEVS-08VAT2_WD-WXD0AA9V4924-part5 showopts vga=0x317
  module /boot/initrd-3.0.38-0.5-xen


  HjCloud:/mnt/winimg/crash/#  echo c >/proc/sysrq-trigger 


  HjCloud:/mnt/winimg/crash/2012-09-30-19:03 # ls
  README.txt System.map-3.0.13-0.27-xen vmcore vmlinux-3.0.13-0.27-xen.gz





  HjCloud:/mnt/winimg/crash/2012-09-30-19:03 # crash -f /boot/xen-syms-4.1.3_02-0.5.1 /boot/xen-syms-dbg-4.1.3_02-0.5.1 vmcore

  crash 5.1.9
  Copyright (C) 2002-2011 Red Hat, Inc.
  Copyright (C) 2004, 2005, 2006 IBM Corporation
  Copyright (C) 1999-2006 Hewlett-Packard Co
  Copyright (C) 2005, 2006 Fujitsu Limited
  Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
  Copyright (C) 2005 NEC Corporation
  Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
  Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
  This program is free software, covered by the GNU General Public License,
  and you are welcome to change it and/or distribute copies of it under
  certain conditions. Enter "help copying" to see the conditions.
  This program has absolutely no warranty. Enter "help warranty" for details.

  crash: /boot/xen-syms-dbg-4.1.3_02-0.5.1: no .gnu_debuglink section
  GNU gdb (GDB) 7.0
  Copyright (C) 2009 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "x86_64-unknown-linux-gnu"...

  WARNING: crashing_cpu not found. 
  crash: invalid kernel virtual address: 523b4fd7c071bf18 type: "fill_pcpu_struct"
  WARNING: cannot fill pcpu_struct.

  crash: cannot read cpu_info.





  Do you think  my method is right?  




  > Date: Wed, 3 Oct 2012 03:18:28 -0700
  > From: daniel.kiper at oracle.com
  > To: duanshuidao at hotmail.com; crash-utility at redhat.com
  > Subject: Re: [Crash-utility] how to generate xen hypervisor core though kdump or other way?
  > 
  > Hi,
  > 
  > > My server is Suse Linux SLES11 sp2 verison ,
  > >
  > > HjCloud:~ # uname -a
  > > Linux HjCloud 3.0.38-0.5-xen #1 SMP Fri Aug 3 09:02:17 UTC 2012 (358029e) x86_64 x86_64 x86_64 > GNU/Linux
  > >
  > > I know to get dom0 kdump core by "echo c >/proc/sysrq-trigger ",
  > >
  > > but don't know how to get xen hypervisor core, then how to analysis
  > > the hypervisor core by Crash software.
  > >
  > > Can you help me?
  > 
  > Does it work? If yes then /proc/vmcore
  > contains proper memory image with
  > Xen dump. Just get copy of it,
  > get xen-syms (or something like that;
  > I do not know how it is called in SLES)
  > and pass them to crash tool. That is it.
  > 
  > Daniel


   

--
Crash-utility mailing list
Crash-utility at redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20121018/247cc901/attachment.htm>


More information about the Crash-utility mailing list