Ubuntu12.04 configure kernel crash Automatic restart and memory transfer

Source: Internet
Author: User
By default, Ubuntu12.04 does not configure kernel crash Automatic restart and memory transfer. In case of kernel crash, there is no coredump file for analysis, and it is stuck on the kernel crash interface. In order to facilitate searching for the cause of kernel crash, you need to configure the kernel crash Automatic Restart configuration and kernel transfer configuration. The configuration steps are as follows: the first step is to configure the kernel crash Automatic restart and add the kernel. panic to kernel parameters. 10 is the system vi/etc/sysctl automatically restarted 10 seconds after the kernel crashes. confkerne

By default, Ubuntu 12.04 does not configure kernel crash and automatic restart and memory transfer. In case of kernel crash, there is no core dump file for analysis, and it is stuck on the kernel crash interface. In order to facilitate searching for the cause of kernel crash, the configuration steps are as follows:

Step 1 configure kernel crash and automatically restart

Add the kernel. panic to the kernel Parameter. 10 indicates that the system is automatically restarted 10 seconds after the kernel crashes.

Vi/etc/sysctl. conf

Kernel. panic = 10

Step 2 verify that the automatic restart mechanism takes effect. You need to configure sysrq

Add kernel. sysrq to kernel parameters. 1 takes effect

Vi/etc/sysctl. conf

Kernel. sysrq = 1

Run the command to make the configuration parameters take effect or restart the system.

Sysctl-p/etc/sysctl. conf

Check whether the configured parameters take effect

Simulate system kernel crash, press alt + sysrq + c at the same time, or run the following command

Echo c>/proc/sysrq

Check to see the kernel crash, and read the second to restart

Step 3 configure the kernel Transfer

The newly installed system must be upgraded; otherwise, the software cannot be installed through apt-get.

Apt-get update

Install kernel Transfer

Sudo apt-get install linux-crashdump

Check whether it takes effect

Test, simulate system kernel crash, press alt + sysrq + c, or run the following command

The system crashed and got stuck. There was no transfer or restart!

After searching for information, sending such a message may be related to the insufficient core dump memory configuration. Therefore, the core dum memory configuration is modified.

Change to MB

Regenerate grub. cfg

Test again.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-12/110918.htm

Related Article

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.