From Fedora Project Wiki
No edit summary |
m (moved QA:Testcase Kdump Func Pretextra Bins Modules to QA:Testcase Kdump Func Preextra Bins Modules: typo) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
#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> | #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. This is an example: | #Edit /etc/kdump.conf. This is an example: | ||
{{admon/note|Find kdump-script here|http://hongqing.fedorapeople.org/script/kdump-script}} | |||
<pre> ext4 /dev/mapper/vg_dhcp6558-lv_root | <pre> ext4 /dev/mapper/vg_dhcp6558-lv_root | ||
kdump_pre /bin/kdump-script | kdump_pre /bin/kdump-script |
Latest revision as of 02:55, 23 March 2012
Description
Setup
- Install Fedora 17 on your machine
- After system installed, check if kexec-tools is installed via
rpm -q kexec-tools
Or via yumyum install kexec-tools
- 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. This is an example:
ext4 /dev/mapper/vg_dhcp6558-lv_root kdump_pre /bin/kdump-script extra_bins /usr/bin/crash extra_modules twofish
- Apply changes and start kdump via service kdump restart
How to test
- Trigger crash via:
echo c > /proc/sysrq-trigger
Expected Results
- From console could see Script excuted
- System reboot after process finished