From Fedora Project Wiki

Revision as of 07:20, 22 March 2012 by Hongqing (talk | contribs)

Description

Setup

  1. Install Fedora 17 on your machine
  2. After system installed, check if kexec-tools kernel-debuginfo and crash is installed via
    rpm -q kexec-tools kernel-debuginfo crash
    Or via yum
    yum install kexec-tools kernel-debuginfo crash
  3. Reserve crashkernel for kdump by grubby 
    grubby --args="crashkernl=128M" --update-kernel=$(grubby --default-kernel)
    Reboot system and check /proc/cmdline
    cat /proc/cmdline | grep "crashkernel"
  4. Edit /etc/kdump.conf, add this line:
     ext4 /dev/mapper/vg_dhcp6558-lv_root
    core_collector makedumpfile -E -d 31
  5. Apply changes and start kdump via service kdump restart

How to test

  1. Trigger crash via:
    echo c > /proc/sysrq-trigger

Expected Results

  1. Test failed if
    cat /proc/cmdline | grep "crashkernel"
    got nothing means reserve crashkernel memory failed
  2. Test failed if restart kdump failed
  3. Test suspend if rpm packages couldn't be installed