CentOS7开机Failed to start Crash recovery kernel arming

I'm having CentOS 7 64 installed on my NUC. After compiling and upgrading the kernel to version 4.14, I am getting below error while booting the CentOS 7:

Failed to start Crash recovery kernel arming
See 'systemctl status kdump.service' for details


Some time system is able to boot and I can work on it. but it gives the same error at the time of next boot.

after entering this:

systemctl status kdump.service

I get this:

● kdump.service - Crash recovery kernel arming
Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled)
Active: failed (Result: exit-code) since Thu 2015-01-22 02:55:49 MST; 39min ago Main PID: 1139 (code=exited, status=1/FAILURE)

Jan 22 02:55:49 localhost.localdomain kdumpctl[1139]: No memory reserved for crash kernel.
Jan 22 02:55:49 localhost.localdomain kdumpctl[1139]: Starting kdump: [FAILED]
Jan 22 02:55:49 localhost.localdomain systemd1: kdump.service: main process exited, code=exited, status=1/FAILURE
Jan 22 02:55:49 localhost.localdomain systemd1: Failed to start Crash recovery kernel arming.
Jan 22 02:55:49 localhost.localdomain systemd1: Unit kdump.service entered failed state.
Jan 22 02:55:49 localhost.localdomain systemd1: kdump.service failed.

How to solve?

1、Modify grub

A kernel argument must be added to /etc/grub.conf to enable kdump. It’s called crashkernel and it can be either auto or set as a predefined value e.g. 128M, 256M, 512M etc.

The line will look similar to the following:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_centos/root rd.lvm.lv=centos_centos/swap quiet"
GRUB_DISABLE_RECOVERY="true"

Change the value of the crashkernel=auto to crashkernel=128M or crashkernel=256M 512M ...

$sudo vim /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=128M rd.lvm.lv=centos_centos/root rd.lvm.lv=centos_centos/swap quiet"
GRUB_DISABLE_RECOVERY="true"

2、Regenerate grub configuration:

#grub2-mkconfig -o /boot/grub2/grub.cfg


On a system with UEFI firmware, execute the following instead:

#grub2-mkconfig -o /boot/efi/EFI/Centos/grub.cfg

 

你可能感兴趣的:(linux)