What should I do when the Linux system crashes-Linux Enterprise Application-Linux server application information? See the following for details. If the problem persists, the problem is resolved by 80%. For the core of the operating system, if there is a problem to reproduce the method, it can be said that it has solved 99%. The common problem is that the system runs normally for a period of time and then crashes. If the problem cannot be reproduced, it is only analyzed based on what is left on the scene of the crash.
If the system is not cleaned, such as disk interruption and file system is good, it may be possible to keep the log information in the file, but I have never encountered such good luck. If the keyboard interrupt can still respond (Press Num Lock, you can see the keyboard light off), then luck is good enough, then you can sacrifice the sysrq algorithm, at the same time, press Alt-Sysrq-T to obtain the process system stack information, press Alt-Sysrq-M to obtain the memory allocation information, and press Alt-Sysrq-W to obtain the current register information.
Linux/Documentation/sysrq.txt. In addition, it is best to disable the Automatic blank function of the terminal so that the system can at least see some information on the screen when it is dead. The setting method is as follows:
# Echo 1>/proc/sys/kernel/sysrq
# Setterm-blank
These two settings are recommended to be added to the system startup script (for example,/etc/rc. d/rc. local) to ensure that each start can be run.
If it is unfortunate that the keyboard is also dead quietly (more unfortunately, this is common), it is not only a way to wait for death, then you can use the serial port terminal (serial console) send system information
To another system, you can locate the problem by analyzing the information. The setting method is as follows:
Preparations
1. A monitored server and a PC for monitoring.
2. A serial direct connection.
Configuration
1. Add a new grub project to the server and add the core parameter "console = ttyS0 console = tty1", for example:
Sometimes you can directly enter "Linux system crashes. What should I do? "
PE6650 Often crashes. "Check if anyone has encountered the same problems as you. Even if it is not found, it is also a helpful information to analyze the problem, at least that your system may be different from others.
Investigating the Linux system crash is both a science and an art. It involves a lot of hardware and software knowledge and experience and is a process of continuous learning.
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.