我已经在 VPS Centos 7 中更新了内核,重新启动后,机器不再响应,包括 SSH。
我通过临时救援 Linux 机器连接到 VPS,从那里我可以挂载 VPS 文件系统:
mount /dev/sdb1 /mnt/
我检查了日志文件 /mnt/var/log/messages 并发现:
- yum: Updated: kernel-tools-libs-3.10.0-1160.80.1.el7.x86_64
- yum: Updated: kernel-tools-3.10.0-1160.80.1.el7.x86_64
- yum: Installed: kernel-3.10.0-1160.80.1.el7.x86_64
- yum: Updated: kernel-headers-3.10.0-1160.80.1.el7.x86_64
- yum: Updated: python-perf-3.10.0-1160.80.1.el7.x86_64
- yum: Updated: 2:microcode_ctl-2.1-73.15.el7_9.x86_64
- systemd: Reloading.
- dracut: dracut-033-572.el7
- dracut: Executing: /sbin/dracut -f /boot/initramfs-3.10.0-1160.80.1.el7.x86_64.img 3.10.0-1160.80.1.el7.x86_64
- dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
- dracut: dracut module 'plymouth' will not ...
- dracut: dracut module 'plymouth' will not ...
- dracut: dracut module 'crypt' will not ...
- dracut: dracut module 'dmraid' will not ...
- dracut: dracut module 'dmsquash-live-ntfs' will not ...
- dracut: dracut module 'lvm' will not ...
- dracut: dracut module 'mdraid' will not ...
- dracut: dracut module 'multipath' will not ...
- dracut: dracut module 'cifs' will not ...
- dracut: dracut module 'fcoe' will not ...
- dracut: dracut module 'fcoe' will not ...
- dracut: dracut module 'fcoe' will not ...
- dracut: dracut module 'fcoe' will not ...
- dracut: dracut module 'fcoe' will not ...
- dracut: dracut module 'fcoe-uefi' will not ...
- dracut: dracut module 'fcoe-uefi' will not ...
- dracut: dracut module 'fcoe-uefi' will not ...
- dracut: dracut module 'iscsi' will not ...
- dracut: dracut module 'iscsi' will not ...
- dracut: dracut module 'nbd' will not ...
- dracut: dracut module 'biosdevname' will not ...
- dracut: *** Including module: bash ***
- dracut: *** Including module: modsign ***
- dracut: *** Including module: nss-softokn ***
- dracut: *** Including module: i18n ***
- dracut: *** Including module: network ***
- dracut: *** Including module: ifcfg ***
- dracut: *** Including module: btrfs ***
- dracut: *** Including module: kernel-modules ***
- dracut: *** Including module: qemu ***
- dracut: *** Including module: qemu-net ***
- dracut: *** Including module: nfs ***
- dracut: *** Including module: resume ***
- dracut: *** Including module: rootfs-block ***
- dracut: *** Including module: terminfo ***
- dracut: *** Including module: udev-rules ***
- dracut: Skipping udev rule: 40-redhat-cpu-hotplug.rules
- dracut: Skipping udev rule: 91-permissions.rules
- dracut: *** Including module: virtfs ***
- dracut: *** Including module: systemd ***
- dracut: *** Including module: usrmount ***
- dracut: *** Including module: base ***
- dracut: *** Including module: fs-lib ***
- dracut: *** Including module: microcode_ctl-fw_dir_override ***
- dracut: microcode_ctl module: mangling fw_dir
- dracut: microcode_ctl: reset fw_dir to "/lib/firmware/updates /lib/firmware"
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel"...
- dracut: microcode_ctl: intel: caveats check for kernel version "3.10.0-1160.80.1.el7.x86_64" passed, adding "/usr/share/microcode_ctl/ucode_with_caveats/intel" to fw_dir variable
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-2d-07"...
- dracut: microcode_ctl: intel-06-2d-07: caveats check for kernel version "3.10.0-1160.80.1.el7.x86_64" passed, adding "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-2d-07" to fw_dir variable
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-4e-03"...
- dracut: microcode_ctl: kernel version "3.10.0-1160.80.1.el7.x86_64" failed early load check for "intel-06-4e-03", skipping
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-4f-01"...
- dracut: microcode_ctl: kernel version "3.10.0-1160.80.1.el7.x86_64" failed early load check for "intel-06-4f-01", skipping
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-55-04"...
- dracut: microcode_ctl: intel-06-55-04: caveats check for kernel version "3.10.0-1160.80.1.el7.x86_64" passed, adding "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-55-04" to fw_dir variable
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-5e-03"...
- dracut: microcode_ctl: intel-06-5e-03: caveats check for kernel version "3.10.0-1160.80.1.el7.x86_64" passed, adding "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-5e-03" to fw_dir variable
- dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-8c-01"...
- dracut: microcode_ctl: intel-06-8c-01: caveats check for kernel version "3.10.0-1160.80.1.el7.x86_64" passed, adding "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-8c-01" to fw_dir variable
- dracut: microcode_ctl: final fw_dir: "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-8c-01 /usr/share/microcode_ctl/ucode_with_caveats/intel-06-5e-03 /usr/share/microcode_ctl/ucode_with_caveats/intel-06-55-04 /usr/share/microcode_ctl/ucode_with_caveats/intel-06-2d-07 /usr/share/microcode_ctl/ucode_with_caveats/intel /lib/firmware/updates /lib/firmware"
升级内核后出现此问题。现在,我想知道问题是什么?它与 Grub2 部分有关吗?新内核是否已损坏?...
我不知道如何指示 Centos 7 使用以前的内核,因为我只是使用救援机,无法运行任何命令来配置 Grub2 或内核。但我仍然可以访问文件,并且可以运行基本命令来列出、复制、删除、编辑……
任何帮助深表感谢。
答案1
我不能 100% 确定是什么出了问题,但在我们的 中/boot/grub2/grub.cfg
,第一个菜单项是救援模式项。我们grub2-mkconfig -o /boot/grub2/grub.cfg
在重启之前运行了 adt,没有出现问题。仍在调查此事,因为它影响了其他几台服务器,但我想为您提供未来的解决方法。