Contentshtml
Kexec is a tool to boot to another kernel from the currently running one. You can perform faster system reboots without any hardware initialization. You can also prepare the system to boot to another kernel if the system crashes.
With Kexec, you can replace the running kernel with another without a hard reboot. The tool is useful for several reasons:
Faster system rebooting
If, for any reasons, you have to reboot the system frequently, Kexec can save you significant time.
Avoiding unreliable firmware and hardware
Nowadays, computer hardware is complex and serious problems may occur during the system start-up. You cannot always replace unreliable hardware immediately. Kexec boots the kernel to a controlled environment with the hardware already initialized. The risk of unsuccessful system start is minimized.
Saving the dump of a crashed kernel
Kexec preserves the contents of the physical memory. After the production kernel fails, the capture kernel, which runs in a reserved memory, saves the state of the failed kernel. The saved image can help you with the subsequent analysis.
Booting without GRUB or LILO configuration
When the system boots a kernel with Kexec, it skips the boot loader stage. Normal booting procedure can fail due to an error in the boot loader configuration. With Kexec, you do not depend on a working boot loader configuration.
If you aim to use Kexec on openSUSE® to speed up reboots or avoid potential hardware problems, you need to install the kexec-tools
package.
The package kexec-tools
contains a script called kexec-bootloader. It reads the boot loader configuration and runs Kexec with the same kernel options as the normal boot loader does. kexec-bootloader -h
gives you the list of possible options.
To set up an environment that helps you obtain useful debug information in case of a kernel crash, you need to install makedumpfile
in addition.
The preferred method to use Kdump in the SUSE environment is through the YaST Kdump module. Install the package yast2-kdump
by entering zypper install yast2-kdump in the command line as root
.
Continue?
http://doc.opensuse.org/documentation/html/openSUSE_114/opensuse-tuning/cha.tuning.kexec.html