The Xen Port of Kexec / Kdump a Short Introduction and Status Report

The Xen Port of Kexec / Kdump a Short Introduction and Status Report

The Xen Port of Kexec / Kdump A short introduction and status report Magnus Damm Simon Horman VA Linux Systems Japan K.K. www.valinux.co.jp/en/ Xen Summit, September 2006 Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 1 / 17 Outline Introduction to Kexec What is Kexec? Kexec Examples Kexec Overview Introduction to Kdump What is Kdump? Kdump Kernels The Crash Utility Xen Porting Effort Kexec under Xen Kdump under Xen The Dumpread Tool Partial Dumps Current Status Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 2 / 17 Introduction to Kexec Outline Introduction to Kexec What is Kexec? Kexec Examples Kexec Overview Introduction to Kdump What is Kdump? Kdump Kernels The Crash Utility Xen Porting Effort Kexec under Xen Kdump under Xen The Dumpread Tool Partial Dumps Current Status Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 3 / 17 Kexec allows you to reboot from Linux into any kernel. as long as the new kernel doesn’t depend on the BIOS for setup. Introduction to Kexec What is Kexec? What is Kexec? “kexec is a system call that implements the ability to shutdown your current kernel, and to start another kernel. It is like a reboot but it is indepedent of the system firmware...” Configuration help text in Linux-2.6.17 Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 4 / 17 . as long as the new kernel doesn’t depend on the BIOS for setup. Introduction to Kexec What is Kexec? What is Kexec? “kexec is a system call that implements the ability to shutdown your current kernel, and to start another kernel. It is like a reboot but it is indepedent of the system firmware...” Configuration help text in Linux-2.6.17 Kexec allows you to reboot from Linux into any kernel. Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 4 / 17 Introduction to Kexec What is Kexec? What is Kexec? “kexec is a system call that implements the ability to shutdown your current kernel, and to start another kernel. It is like a reboot but it is indepedent of the system firmware...” Configuration help text in Linux-2.6.17 Kexec allows you to reboot from Linux into any kernel. as long as the new kernel doesn’t depend on the BIOS for setup. Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 4 / 17 Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 Xen I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen I kexec -t multiboot-x86 /xen.gz Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 –module="/initramfs.cpio.gz" Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 Introduction to Kexec Kexec Examples Kexec Examples Below are a few examples on how to use Kexec to reboot into. Linux I kexec vmlinux –append=”root=/dev/hda3” I kexec bzImage –append=”ip=on” –initrd=initramfs.cpio.gz Xen I kexec -t multiboot-x86 /xen.gz –append="/xen.gz com1=115200,8n1,0x3f8" –module="/vmlinuz console=ttyS0,115200 ip=on" –module="/initramfs.cpio.gz" Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 5 / 17 Supported architectures: I i386, x86_64, PowerPC/PPC, s390, SH are all in Linux-2.6.17. I ia64 support is currently under development. Development: I Discussions take place on the fastboot mailing list. I https://lists.osdl.org/mailman/listinfo/fastboot I Many patches available for kexec-tools. Introduction to Kexec Kexec Overview Kexec Overview Kexec is a combination of kernel code and user space code: I Linux kernel support available through CONFIG_KEXEC. I kexec-tools provides the user space tool kexec. I http://www.xmission.com/~ebiederm/files/kexec/ Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 6 / 17 Development: I Discussions take place on the fastboot mailing list. I https://lists.osdl.org/mailman/listinfo/fastboot I Many patches available for kexec-tools. Introduction to Kexec Kexec Overview Kexec Overview Kexec is a combination of kernel code and user space code: I Linux kernel support available through CONFIG_KEXEC. I kexec-tools provides the user space tool kexec. I http://www.xmission.com/~ebiederm/files/kexec/ Supported architectures: I i386, x86_64, PowerPC/PPC, s390, SH are all in Linux-2.6.17. I ia64 support is currently under development. Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 6 / 17 Introduction to Kexec Kexec Overview Kexec Overview Kexec is a combination of kernel code and user space code: I Linux kernel support available through CONFIG_KEXEC. I kexec-tools provides the user space tool kexec. I http://www.xmission.com/~ebiederm/files/kexec/ Supported architectures: I i386, x86_64, PowerPC/PPC, s390, SH are all in Linux-2.6.17. I ia64 support is currently under development. Development: I Discussions take place on the fastboot mailing list. I https://lists.osdl.org/mailman/listinfo/fastboot I Many patches available for kexec-tools. Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 6 / 17 Introduction to Kdump Outline Introduction to Kexec What is Kexec? Kexec Examples Kexec Overview Introduction to Kdump What is Kdump? Kdump Kernels The Crash Utility Xen Porting Effort Kexec under Xen Kdump under Xen The Dumpread Tool Partial Dumps Current Status Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 7 / 17 I User space register contents and virtual memory. I Register contents and physical memory. Kdump is used to extract a crash dump from a crashed machine. The crash utility is later on used to analyze the crash dump. What is a crash dump then? A crash dump is similar to a core dump: I A core dump represents the contents of a process. I A crash dump represents the contents of the kernel. Introduction to Kdump What is Kdump? What is Kdump? Kdump is a Kexec-based crash dumping solution. Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 8 / 17 I User space register contents and virtual memory. I Register contents and physical memory. A crash dump is similar to a core dump: I A core dump represents the contents of a process. I A crash dump represents the contents of the kernel. Kdump is used to extract a crash dump from a crashed machine. The crash utility is later on used to analyze the crash dump. Introduction to Kdump What is Kdump? What is Kdump? Kdump is a Kexec-based crash dumping solution. What is a crash dump then? Magnus Damm ([email protected]) Kexec / Kdump Xen Summit, September 2006 8 / 17 I User space register contents and virtual memory.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    71 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us