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