如何在Debian Jessie中的GRUB_CMDLINE_LINUX_DEFAULT中指定crashkernel

时间:2017-05-30 10:34:44

标签: debian debian-jessie

我按照配置kdump-tools https://www.bentasker.co.uk/documentation/linux/312-installing-and-configuring-kdump-on-debian-jessie。但我的内核在GRUB_CMDLINE_LINUX_DEFAULT中没有看到 crashkernel

我的内核:

$ uname -a
Linux pavel-test-106 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux

我更新了/ etc / default / grub:

$ cat /etc/default/grub
GRUB_CMDLINE_LINUX="console=ttyS0,38400n8 elevator=noop"
GRUB_TIMEOUT=0
GRUB_SERIAL_COMMAND="serial"
GRUB_DISABLE_RECOVERY=True
GRUB_GFXMODE="auto"
GRUB_HIDDEN_TIMEOUT_QUIET=True
GRUB_HIDDEN_TIMEOUT=0
TERMINAL="console"
GRUB_DEFAULT=0
GRUB_CMDLINE_LINUX_DEFAULT="crashkernel=128M cgroup_enable=memory swapaccount=1"

然后

$ update-grub
$ reboot now

并没有效果:

$ kdump-config show
[FAIL] no crashkernel= parameter in the kernel cmdline ... failed!
USE_KDUMP:        1
KDUMP_SYSCTL:     kernel.panic_on_oops=1
KDUMP_COREDIR:    /var/crash
crashkernel addr: 
current state:    Not ready to kdump

kernel link: 


kexec command:
  no kexec command recorded

内核cmdline:

$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=328c1eeb-1a6f-4fa6-a850-b59782541c5c ro console=ttyS0,38400n8 elevator=noop cgroup_enable=memory swapaccount=1

0 个答案:

没有答案