The default ubuntu12.04 does not configure the kernel crash to automatically restart and dump, resulting in a kernel crash, there is no core dump file to analyze, and stuck in the kernel crash interface, in order to facilitate the search for kernel crash reasons, need to be the kernel crash automatic restart configuration and kernel dump configuration, The configuration steps are as follows:
First step configure kernel crash auto restart
Add kernel.panic to kernel parameter, 10 is kernel crash after 10 seconds, auto restart system
vi/etc/sysctl.conf Kernel.panic = 10
The second step verifies that the automatic restart mechanism is in effect and needs to be configured SYSRQ
Add KERNEL.SYSRQ to kernel parameter, 1 for effective
vi/etc/sysctl.conf KERNEL.SYSRQ = 1
Run the command to make the configured parameters effective, or to restart the system
Sysctl-p/etc/sysctl.conf
Check that the configured parameters are in effect
650) this.width=650; "height=" "title=" clipboard "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none, "alt=" clipboard "src=" http://s3.51cto.com/wyfs02/M00/57/70/ Wkiol1sayaatxykraaa3quwdq5i466.jpg "border=" 0 "/>
650) this.width=650; "height=" "title=" clipboard[1] "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[1] "src=" http://s3.51cto.com/wyfs02/M01/57/70/ Wkiol1sayabtbrmaaaarwdlinfw856.jpg "border=" 0 "/>
Simulate system kernel crashes, press alt+sysrq+c three keys at the same time, or run the following command
Echo C >/PROC/SYSRQ
Look to see the kernel crash and read the second reboot
650) this.width=650; "height=" 699 "title=" clipboard[2] "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[2] "src=" http://s3.51cto.com/wyfs02/M02/57/70/ Wkiol1sayamsbws2aaedo8hjo5k432.jpg "border=" 0 "/>
The third step is to configure the kernel dump
The newly installed system needs to be upgraded, otherwise it cannot install the software through Apt-get
Apt-get Update
Install kernel Dump
sudo apt-get install Linux-crashdump
See if it takes effect
650) this.width=650; "height=", "title=" clipboard[3 "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[3] "src=" http://s3.51cto.com/wyfs02/M00/57/70/ Wkiol1sayanyxoz-aacgzchzwqm129.jpg "border=" 0 "/>
Test, simulate system kernel crashes, press alt+sysrq+c three keys at the same time, or run the following command
Found the system crashed, and stuck to the dead, no send dump, no reboot!
650) this.width=650; "height=" 623 "title=" clipboard[4] "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[4] "src=" http://s3.51cto.com/wyfs02/M01/57/73/ Wkiom1sax2hhflv9aaah9hew1kw056.jpg "border=" 0 "/>
After finding the data, sending such a situation may not be related to the core dump memory configuration, so modified the core Dum memory configuration
650) this.width=650; "height=" "title=" Clipboard[5 "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[5] "src=" http://s3.51cto.com/wyfs02/M02/57/70/ Wkiol1sayaytq5hoaabnun4vhoc385.jpg "border=" 0 "/>
Modified to 512M size
650) this.width=650; "height=" "title=" Clipboard[6 "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[6] "src=" http://s3.51cto.com/wyfs02/M00/57/70/ Wkiol1saya2wmr6eaadidj5jksu735.jpg "border=" 0 "/>
Regenerate Grub.cfg
650) this.width=650; "height=" 107 "title=" clipboard[7] "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none; "alt=" clipboard[7] "src=" http://s3.51cto.com/wyfs02/M01/57/70/ Wkiol1saya2ixocnaac-ddh4qvw196.jpg "border=" 0 "/>
Re-test, success.
650) this.width=650, "height=" 147 "title=" EBW8SL) ufpdm "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none, "alt=" EBW8SL) ufpdm "src=" http://s3.51cto.com/wyfs02/M01/57/73/ Wkiom1sax2lgc888aafsy5_4tjo902.jpg "border=" 0 "/>
This article is from the "xiaoli110 blog" blog, make sure to keep this source http://xiaoli110.blog.51cto.com/1724/1595128
Ubuntu 12.04 configuration kernel crash Auto restart and dump