Rhel6.4 kernel dump and view

Source: Internet
Author: User
I. installation package:

1. Crash (installed through YUM)

2. kernel-debuginfo-2.6.32-358.el6.x86_64.rpm

3. kernel-debuginfo-common-x86_64-2.6.32-358.el6.x86_64.rpm

 

2. Enable the kdump service:/etc/init. d/kdump start

Note: The kdump service is enabled by default in the rhel6.4 system installed through Kickstart.

Confirm that the kdump service is enabled:/etc/init. d/kdump status. If the output kdump is operational, the kdump service is successfully enabled.

 

3. view the dump file

After the kernel crash, a dump file is generated in the/var/crash/directory, for example:

/Var/crash/127.0.0.1-2014-05-07-15:24:33/

The vmcore-dmesg.txt and vmcore-dmesg.txt files are generated in the directory:

Vmcore: memory dump during kernel crash

Vmcore-dmesg.txt: saves the dmesg information at this point during kernel crash

View the vmcore command: crash/usr/lib/debug/lib/modules/2.6.32-358. el6.x86 _ 64/vmlinux./vmcore

The output

Rhel6.4-kernel-dump1

 

Enter BT

Rhel6.4-kernel-dump2

In the figureCommand: "crash_test.sh"Indicates that crash is triggered by the crash_test.sh program.

Appendix:

1. Manually trigger the kernel crash method echo C>/proc/sysrq-trigger

2. Crash>Interactive Common commands:

?View help. There are many commands to view the current process, memory, module, and so on.

Help BTView BT Command help


Rhel6.4 kernel dump and view

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.