From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|description= | |description= | ||
|setup= | |setup= | ||
#Install Fedora 17 on your machine | |||
#After system installed, check if kexec-tools kernel-debuginfo and crash is installed via <pre>rpm -q kexec-tools kernel-debuginfo crash</pre> Or via yum <pre>yum install kexec-tools kernel-debuginfo crash</pre> | |||
#Reserve crashkernel for kdump by grubby <pre>grubby --args="crashkernl=128M" --update-kernel=$(grubby --default-kernel)</pre> Reboot system and check /proc/cmdline <pre>cat /proc/cmdline | grep "crashkernel"</pre> | |||
#Edit /etc/kdump.conf, add this line:<pre> ext4 /dev/mapper/vg_dhcp6558-lv_root</pre><pre>core_collector makedumpfile -E -d 31</pre> | |||
#Apply changes and start kdump via service kdump restart | |||
|actions= | |actions= | ||
#Trigger crash via: <pre>echo c > /proc/sysrq-trigger</pre> | #Trigger crash via: <pre>echo c > /proc/sysrq-trigger</pre> |
Revision as of 07:20, 22 March 2012
Description
Setup
- Install Fedora 17 on your machine
- After system installed, check if kexec-tools kernel-debuginfo and crash is installed via
rpm -q kexec-tools kernel-debuginfo crash
Or via yumyum install kexec-tools kernel-debuginfo crash
- Reserve crashkernel for kdump by grubby
grubby --args="crashkernl=128M" --update-kernel=$(grubby --default-kernel)
Reboot system and check /proc/cmdlinecat /proc/cmdline | grep "crashkernel"
- Edit /etc/kdump.conf, add this line:
ext4 /dev/mapper/vg_dhcp6558-lv_root
core_collector makedumpfile -E -d 31
- Apply changes and start kdump via service kdump restart
How to test
- Trigger crash via:
echo c > /proc/sysrq-trigger
Expected Results
- Test failed if
cat /proc/cmdline | grep "crashkernel"
got nothing means reserve crashkernel memory failed - Test failed if restart kdump failed
- Test suspend if rpm packages couldn't be installed