Ubuntu 12.04 configuration kernel crash Automatic restart and transfer
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.