From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
extra_bins /usr/bin/crash | extra_bins /usr/bin/crash | ||
extra_modules twofish-x86_64</pre> | extra_modules twofish-x86_64</pre> | ||
#Apply changes and start kdump via service kdump restart | #Apply changes and start kdump via <pre>service kdump restart</pre> | ||
|actions= | |actions= | ||
#Trigger crash via: <pre>echo c > /proc/sysrq-trigger</pre> | #Trigger crash via: <pre>echo c > /proc/sysrq-trigger</pre> |
Latest revision as of 10:13, 22 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_post /bin/kdump-script extra_bins /usr/bin/crash extra_modules twofish-x86_64
- 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