Learn a little more (13)--Solve Linux Kdump service startup failure

Source: Internet
Author: User

Kdump is a dump mechanism in the event of a Linux Kernel crash, and a simple understanding is that if Kernel crashes for some reasonduring system startup, Kdump will be responsible for logging the logs for troubleshooting reasons. in Linux distributions such as CentOS 6, even with minimal installation, Kdump is installed as a service to the system, possibly due to our limited memory allocation to Linux the Kdump service boot failed, as shown in 1:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/E4/wKiom1VU26Pjy0pmAAOqaUbeFKE217.jpg "title=" Kdump boot failed. jpg "alt=" wkiom1vu26pjy0pmaaoqaubefke217.jpg "/> figure -1 kdump failed to start

Resolving Kdump startup failure is very simple, as long as you modify the grub.conf file, change the value of Crashkernel (the default value is Crashkernel=auto) , you can customize the reserved memory for it. For Linux operating systems with different memory, their reserved memory generally follows the following guidelines:

1. If the system memory <= 8G ,Crashkernel=auto is the shutdown kdump, aslong as it reserved 128M memory to solve the problem:

[Email protected] ~]# vim/boot/grub/grub.conf//or [[email protected] ~]# vim/etc/grub.conf

Locate crashkernel , change Crashkernel=auto to crashkernel=128m , and restart Linux .

2. if 8G < system memory <= 16G ,Crashkernel=auto will reserve 256M of memory, which is equivalent to crashkernel=256m , kdump does not start failing.

3. If the system memory > 16G ,Crashkernel=auto will reserve 512M memory, that is equivalent to crashkernel= 512M , the same kdump will not fail to start.

after the modification is completed and the system is restarted, it is found that the previous Kdump failed to start successfully, as shown in 2 :

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/DF/wKioL1VU3TjSA1_cAAPIkSBakIY705.jpg "title=" Kdump fix. jpg "alt=" wkiol1vu3tjsa1_caapiksbakiy705.jpg "/>

Figure 2 kdump Start-up success

Of course, There is a lot of knowledge about kdump, we are here knowledge obsessive-compulsive like the system memory <= 8G when its startup failure to solve the problem, about Kdump We continue to follow up, in-depth understanding.

Resources:

http://zmyxn.blog.51cto.com/3029175/1620686

This article is from the "barrel of fake dog excrement" blog, please be sure to keep this source http://xitongjiagoushi.blog.51cto.com/9975742/1651449

Learn a little more (13)--Solve Linux Kdump service startup failure

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.