www. On IT Road .com
解决方案
卷组从“ol”重命名为“root_vg”,逻辑卷从“root”重命名为“root_vol”。
内核引导行中的逻辑卷/组参数 (rd.lvm.lv= ) 值不正确。
请按照下面列出的步骤解决问题。
引导系统进入救援模式。
列出系统上可用的逻辑卷。
例如:
# lvs LV VG root ol swap ol
- 编辑 /etc/default/grub 文件并验证 rd.lvm.lv= 参数值是否与 lvs 命令输出中列出的逻辑卷匹配。
例如,
更改自:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=root_vg/root_ol rd.lvm.lv=root_vg/swap rhgb quiet"
到:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=ol/root rd.lvm.lv=ol/swap rhgb quiet"
- 通过运行 grub2-mkconfig -o 命令重建 /boot/grub2/grub.cfg 文件,如下所示:
在基于 BIOS 的机器上:
# grub2-mkconfig -o /boot/grub2/grub.cfg
在基于 UEFI 的机器上:
# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
- 重新启动服务器并验证系统启动成功。
# reboot
问题
CentOS/RHEL 7 启动时报错:dracut-initqueue: Warning: dracut initqueue timeout - starting timeout scripts
,然后启动紧急shell:
dracut-initqueue[]: Warning: dracut initqueue timeout - starting timeout scripts dracut-initqueue[]: Warning: dracut initqueue timeout - starting timeout scripts dracut-initqueue[]: Warning: Could not boot. dracut-initqueue[]: Warning: /dev/mapper/root_vg-root_vol does not exist. dracut-initqueue[]: Warning: /dev/ol/root does not exist. dracut-initqueue[]: Warning: /dev/ol/swap does not exist. Starting Dracut Emergency Shell.....
日期:2020-09-17 00:12:23 来源:oir作者:oir