为什么 grub.conf 文件中的 crashkernel 参数有两个条目?

为什么 grub.conf 文件中的 crashkernel 参数有两个条目?

我试图在服务器上启用 kdump,但在 grub 配置文件中,每个操作系统条目的 crashkernel 参数有两个条目。我知道这个参数是用来给崩溃内核分配内存的。我试图了解 grub.conf 中的 crashkernel 参数有两个条目的意义是什么。

#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.32-754.6.3.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-754.6.3.el6.x86_64 ro root=/dev/VG01/LV_ROOT      LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto crashkernel=auto
        initrd /initramfs-2.6.32-754.6.3.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-696.30.1.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-696.30.1.el6.x86_64 ro root=/dev/VG01/LV_ROOT      LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto crashkernel=auto
        initrd /initramfs-2.6.32-696.30.1.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-642.13.1.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-642.13.1.el6.x86_64 ro root=/dev/VG01/LV_ROOT      LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto crashkernel=auto
        initrd /initramfs-2.6.32-642.13.1.el6.x86_64.img

答案1

您是否安装、删除并重新安装了kdumpRPM 软件包?

我的猜测是,出于上述或其他原因,安装后脚本只是运行了两次。

指定该选项两次应该没有特殊含义,因此请随意删除多余的条目。

相关内容