From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description= |setup= #Install Fedora 17 on your machine #After system installed, check if kexec-tools kernel-debuginfo and crash is installed via <pre>rpm -q kexe...")
 
No edit summary
Line 3: Line 3:
|setup=
|setup=
#Install Fedora 17 on your machine
#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 Or via yum yum install kexec-tools kernel-debuginfo crash</pre>
#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>
#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>
#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
#Apply changes and start kdump via service kdump restart
|actions=
#Trigger crash via:<pre>echo c > /proc/sysrq-trigger</pre>
#Analyse vmcore:<pre>readelf -a /var/crash/xxx/vmcore</pre><pre>objdump -x /var/crash/xxx/vmcore</pre><pre>eu-readelf -a /var/crash/xxx/vmcore</pre>
#Use crash to analyse vmcore:<pre>crash -i crash-simple.cmd /usr/lib/debug/lib/modules/xxx/vmlinux /var/crash/xxx/vmcore</pre><pre>crash -i crash.cmd /usr/lib/debug/lib/modules/xxx/vmlinux /var/crash/xxx/vmcore</pre>
#Use gdb to analyse vmcore:<pre>gdb -x gdb.cmd /usr/lib/debug/lib/modules/xxx/vmlinux /var/crash/xxx/vmcore</pre>
|results=
#Dump process could be monitered if console is connected
#System reboot successfully after dump vmcore finshed
#vmcore was found under path /var/crash/xxx/vmcore
#readelf should return 0, and no "warning" "warnings" found on output
    *objdump should return 0
    *eu-readelf should return 0
#No warning or error should be should found on crash output
#No warning or error should be should found on gdb output
}}
}}
[[Category:Kdump_Test_Cases]]

Revision as of 07:06, 22 March 2012

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
  2. Analyse vmcore:
    readelf -a /var/crash/xxx/vmcore
    objdump -x /var/crash/xxx/vmcore
    eu-readelf -a /var/crash/xxx/vmcore
  3. Use crash to analyse vmcore:
    crash -i crash-simple.cmd /usr/lib/debug/lib/modules/xxx/vmlinux /var/crash/xxx/vmcore
    crash -i crash.cmd /usr/lib/debug/lib/modules/xxx/vmlinux /var/crash/xxx/vmcore
  4. Use gdb to analyse vmcore:
    gdb -x gdb.cmd /usr/lib/debug/lib/modules/xxx/vmlinux /var/crash/xxx/vmcore

Expected Results

  1. Dump process could be monitered if console is connected
  2. System reboot successfully after dump vmcore finshed
  3. vmcore was found under path /var/crash/xxx/vmcore
  4. readelf should return 0, and no "warning" "warnings" found on output
   *objdump should return 0
   *eu-readelf should return 0
  1. No warning or error should be should found on crash output
  2. No warning or error should be should found on gdb output