Use crash to extract pre-analysis information in vmcore

Source: Internet
Author: User

I. Introduction

When the Linux kernel crashes or the server hangs, kdump (kernel crash dump: the kernel crash dump device) generates the vmcore file, and analyzes the vmcore information to determine the cause, crash is a widely used kernel crash dump file analysis tool, which requires the system to install the crash tool and kernel debugging tool kernel-debuginfo.

Ii. Tool installation and debugging

1. The version of the installation package must be consistent with that of the Linux kernel. view the Linux kernel version:

# Uname-

2. install, configure, and start kdump:

Install kdump:

Yum search kexec-Tools
Yum install kexec-tools.x86_64

Configure kdump:

Vim/boot/GRUB/menu. lst: Set crashkernel = auto

Vim/etc/kdump. conf: path/var/crash (directory generated by the Core File)

Start kdump:

Service kdump start

3. Install crash 

File Name: crash-6.1.0-5.el6.x86_64.rpm

Installation: Yum search crash

Yum install crash. x86_64

4. Install kernel-debuginfo

File Name: kernel-debuginfo-common-x86_64-2.6.32-220.el6.x86_64.rpm

Kernel-debuginfo-2.6.32-220.el6.x86_64.rpm

: Http://debuginfo.centos.org/6/x86_64/

Installation: rpm-IVH kernel-debuginfo-common-x86_64-2.6.32-220.el6.x86_64.rpm

Rpm-IVH kernel-debuginfo-2.6.32-220.el6.x86_64.rpm

Iii. Operations:

Refer:

Http://blog.csdn.net/guowenyan001/article/details/12975221

References:

In-depth exploration of kdump and crash:

Http://www.ibm.com/developerworks/cn/linux/l-cn-kdump4/index.html? CA = Drs

Crash debugging vmcore:

Http://blog.csdn.net/taget/article/details/7814740



This article from the "Drop water stone" blog, please be sure to keep this source http://4735839.blog.51cto.com/4725839/1429911

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.