How To Set Up A Vmcore Analysis Environment
How To Set Up A Vmcore Analysis Environment
Environment
Red Hat Enterprise Linux 5, 6, 7, 8, 9
Issue
I have a vmcore I want to analyze
How can I look at a crash dump
What do I need for crash analysis
Resolution
Install the crash package
# crash
KERNEL: /usr/lib/debug/lib/modules/...
DUMPFILE: /dev/crash
CPUS: 4
DATE: Wed Mar 26 17:44:26 2014
UPTIME: 01:34:34
LOAD AVERAGE: 0.08, 0.03, 0.05
TASKS: 366
NODENAME: localhost.localdomain
RELEASE: 3.13.6-200.fc20.x86_64
VERSION: #1 SMP Fri Mar 7 17:02:28 UTC 2014
MACHINE: x86_64 (2893 Mhz)
MEMORY: 11.7 GB
PID: 3826
COMMAND: "crash"
TASK: ffff8800c4e44500 [THREAD_INFO: ffff8800ad0f6000]
CPU: 3
STATE: TASK_RUNNING (ACTIVE)
For vmcores of different kernel versions, the appropriate 'vmlinux' file from the kernel-
debuginfo package must be extracted. In this case, the crash invocation is as follows:
# crash /path/to/vmcore /path/to/vmlinux
For Example:
Please see Unable to open vmcore file using crash utility if you run into issues with mismatching
kernel versions between the vmcore and the analysis environment.
Product(s) Red Hat Enterprise Linux Component kernel Category Learn more
This solution is part of Red Hat’s fast-track publication program, providing a huge library of
solutions that Red Hat engineers have created while supporting our customers. To give you the
knowledge you need the instant it becomes available, these articles may be presented in a raw
and unedited form.
RHEL7: crash utility show errors with "crash: invalid structure size: tnt"
Comments