How to use kexec

Tue Jun 15 09:07:36 2010

1. check if current kernel support kexec
# grep KEXEC /boog/config-2.6.34-rc6

2. install kexec tools
1) apt-get / yum install kexec-tools
2) src:

3. get command line of new kernel
# cat /boot/grub/menu.lst
title linux-2.6.34-rc7
root (hd0,5)
kernel /boot/vmlinuz-2.6.34-rc7 root=/dev/sda6
initrd /boot/initrd.img-2.6.34-rc7

4. setup parameters
# kexec -l /boot/vmlinuz-2.6.34-rc7 –append=”root=/dev/sda6″ –initrd=/boot/initrd.img-2.6.34-rc7

5. switch to new kernel
# kexec -e
System will hot-reboot

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.