About how to set crash dump enable
Hi all.
I find for how to set crash dump of xen kernel(!= dom0 or domU) enable. Please give me any hint :-)
regards.
Steps I done
-----------------------------------------------
#setting for generate debug info
#kernel-hacking - Compile the kernel with debug info -> on make linux-2.6-xen-config CONFIGMODE=menuconfig
#build
make install-xen install-kernels debug=y
#setting grub
#omit :-)
#boot and connect to xen with serial port
#use console with serial port
[root@localhost boot]# (XEN) *** Serial input -> Xen (type 'CTRL-a' three times to switch input to DOM0).
(XEN) 'h' pressed -> showing installed handlers
(XEN) key '%' (ascii '25') => Trap to xendbg
(XEN) key 'C' (ascii '43') => trigger a crashdump
(XEN) key 'H' (ascii '48') => dump heap info
(XEN) key 'N' (ascii '4e') => NMI statistics
(XEN) key 'R' (ascii '52') => reboot machine
(XEN) key 'a' (ascii '61') => dump timer queues
(XEN) key 'd' (ascii '64') => dump registers
(XEN) key 'h' (ascii '68') => show this message
(XEN) key 'i' (ascii '69') => dump interrupt bindings (XEN) key 'm' (ascii '6d') => memory info
(XEN) key 'n' (ascii '6e') => trigger an NMI
(XEN) key 'q' (ascii '71') => dump domain (and guest debug) info (XEN) key 'r' (ascii '72') => dump run queues
(XEN) key 't' (ascii '74') => display multi-cpu clock info (XEN) key 'u' (ascii '75') => dump numa info
(XEN) key 'z' (ascii '7a') => print ioapic info
#try to generate crash dump
#but miss for some reason :-(
#What's crash kernel?
(XEN) 'C' pressed -> triggering crashdump
(XEN) * no crash kernel loaded!
----------------------------------------------------------------------
****************************************
HPCS lab
4th grade student of Colledge of Information Science, University of Tsukuba
Ryo Kanbayashi
Hi, Ryo
Quoted 1 line
(XEN) * no crash kernel loaded!
You should set kexec/kdump completely.
The message means you don't load kdump kernel with kexec command. zyou can check it by looking at /sys/kernel/kexec_crash_loaded.
If you cannot load the kernel, please check /proc/iomem.
Best Regards,
Akio Takebe
Hi, Akio
Thanks to your nice advice :-)
Due to your advice , I learned relation between crash dump and kdump.
But, I've not been able to setup crash kernel correctly.
In xen, step to setup kdump kernel is different with ordinary linux kernel?
#I tried with kdump.txt in linux kernel document. but....
best regards.
Quoted 9 lines · Akio Takebe
Hi, Ryo
Quoted 2 lines
(XEN) * no crash kernel loaded!
You should set kexec/kdump completely.
The message means you don't load kdump kernel with kexec command. zyou can check it by looking at/sys/kernel/kexec_crash_loaded.
Quoted 8 lines
If you cannot load the kernel, please check
/proc/iomem.Best Regards,
Akio Takebe
****************************************
HPCS lab
4th grade student of Colledge of Information Science, University of Tsukuba
Ryo Kanbayashi
Hi, Ryo
Sorry for my late reply.
I think the difference between linux and xen is only grub/menu.list. Can you try;
1. vim /boot/grub/menu.list
title Xen-unstable
root (hd0,0)
kernel /xen.gz nmi=fatal crashkernel=128M@32M
module /vmlinuz-2.6.18-xen ro root=LABEL=/12 rhgb nmi_watchdog=0
module /initrd-2.6.18-xen.img
2. Setup kdump like the below. (it is the same as linux.)
# /sbin/kexec --args-linux --elf64-core-headers -p \
--command-line="ro root=LABEL=/12 irqpoll maxcpus=1" \
--initrd="/boot/initrd-2.6.18.img /boot/vmlinuz-2.6.18You can make kdump kernel by compiling with CONFIG_PROC_VMCORE=y, CONFIG_KEXEC=y CONFIG_CRASH_DUMP=y, and so on. RHEL5 kernel is useful. :-)
Best Regards,
Akio Takebe
Quoted 37 lines
Hi, Akio
Thanks to your nice advice :-)
Due to your advice , I learned relation between crash dump and kdump.But, I've not been able to setup crash kernel correctly.
In xen, step to setup kdump kernel is different with ordinary linux kernel?#I tried with kdump.txt in linux kernel document. but....
best regards.
Quoted 9 lines · Akio Takebe
Hi, Ryo
Quoted 2 lines
(XEN) * no crash kernel loaded!
You should set kexec/kdump completely.
The message means you don't load kdump kernel with kexec command. zyou can check it by looking at/sys/kernel/kexec_crash_loaded.Quoted 8 lines
If you cannot load the kernel, please check
/proc/iomem.Best Regards,
Akio Takebe
****************************************
HPCS lab
4th grade student of Colledge of Information Science, University of TsukubaRyo Kanbayashi
Sorry I'd forgotten to reply.
Thanks for your help. Akio.
But, I've been not succeeded.
I'll try continuously :-)
regards.
****************************************
HPCS lab
4th grade student of Colledge of Information Science, University of Tsukuba
Ryo Kanbayashi
<javascript:goWordLink("continuously")>
Quoted 71 lines · Akio Takebe
Hi, Ryo
Sorry for my late reply.
I think the difference between linux and xen is only grub/menu.list. Can you try;1. vim
/boot/grub/menu.listtitle Xen-unstable root (hd0,0) kernel /xen.gz nmi=fatal crashkernel=128M@32M module /vmlinuz-2.6.18-xen ro root=LABEL=/12 rhgb nmi_watchdog=0 module /initrd-2.6.18-xen.img 2. Setup kdump like the below. (it is the same as linux.) # /sbin/kexec --args-linux --elf64-core-headers -p \ --command-line="ro root=LABEL=/12 irqpoll maxcpus=1" \ --initrd="/boot/initrd-2.6.18.img /boot/vmlinuz-2.6.18You can make kdump kernel by compiling with
CONFIG_PROC_VMCORE=y,CONFIG_KEXEC=yCONFIG_CRASH_DUMP=y, and so on. RHEL5 kernel is useful. :-)Best Regards,
Akio Takebe
Quoted 42 lines
Hi, Akio
Thanks to your nice advice :-)
Due to your advice , I learned relation between crash dump and kdump.But, I've not been able to setup crash kernel correctly.
In xen, step to setup kdump kernel is different with ordinary linux kernel?#I tried with kdump.txt in linux kernel document. but....
best regards.
Quoted 11 lines · Akio Takebe
Hi, Ryo
Quoted 3 lines
(XEN) * no crash kernel loaded!
You should set kexec/kdump completely.
The message means you don't load kdump kernel with kexec command. zyou can check it by looking at/sys/kernel/kexec_crash_loaded.Quoted 9 lines
If you cannot load the kernel, please check
/proc/iomem.Best Regards,
Akio Takebe
****************************************
HPCS lab
4th grade student of Colledge of Information Science, University of TsukubaRyo Kanbayashi