最近重启了esxi上的一台服务器,重启后很长时间进入不了系统,提示dracut-initqueue timeout
重启前未做过相关补丁升级,于是判断为引导出现问题
报错内容大致如下:
Warning: /dev/centos/root does not exist Warning: /dev/centos/swap does not exist Warning: /dev/mapper/centos-root does not exist Generating "/run/initramfs/rdsosreport.txt"
|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 | Warning: /dev/centos/root does not exist Warning: /dev/centos/swap does not exist Warning: /dev/mapper/centos-root does not exist Generating "/run/initramfs/rdsosreport.txt" |
解决办法:
重启服务器,在选择引导项,选择CentOS Linx(0-rescue-xxx) 7 (Core)启动,启动完成后就可以进入系统。
进入boot目录执行重建操作,即
cd /boot dracut -f initramfs-3.10.0-1127.el7.x86_64.img reboot
|-------|----------------------------------------------------------------| | 1 2 3 | cd /boot dracut -f initramfs-3.10.0-1127.el7.x86_64.img reboot |