0% found this document useful (0 votes)
60 views4 pages

How To Set Up A Vmcore Analysis Environment

Uploaded by

Anil Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views4 pages

How To Set Up A Vmcore Analysis Environment

Uploaded by

Anil Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Subscriptions Downloads Containers Support Cases

Products & Services Knowledgebase How to set up a vmcore analysis environment?

How to set up a vmcore analysis environment?


$ SOLUTION VERIFIED - Updated April 13 2022 at 12:09 PM - English

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

yum install crash

Locate the appropriate 'debuginfo' channel

yum repolist disabled | grep server-debug

Enable the 'debuginfo' channel

yum repolist --enablerepo=<repo with server-debug-rpms>

Install the kernel-debuginfo package


yum install kernel-debuginfo

Run 'crash' on the live system to test

# crash

Copyright (C) 2002-2013 Red Hat, Inc.


Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6


Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

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:

# crash /home/user/vmcore_022482 /usr/lib/debug/lib/modules/2.6.32-


642.15.1.el6.x86_64/vmlinux

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

Tags crash kernel panic

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.

People who viewed this solution also viewed

Why crash command giving an error "crash:


/usr/lib/debug/lib/modules/kernel/vmlinux: No such file or directory" while
opening a vmcore file ?

Solution - Jan 4, 2013

RHEL7: crash utility show errors with "crash: invalid structure size: tnt"

Solution - Nov 12, 2019


crash needs to be recompiled to reflect increase in NR_CPUS.

Solution - May 1, 2010

Comments

Copyright © 2023 Red Hat, Inc.

You might also like