Centos断电后启动失败
公司服务器断电,发现服务器启动失败,打开Remote Console
,查看发现系统进入了救援模式,页面显示内容如下:
Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into default mode.
Give root password for maintenance
(or press Control-D to continue):
排查
根据提示,登录root用户,发现网卡启动失败,查看系统日志/var/log/messages
发现为/dev/mapper/centos-home
分区启动失败导致. 查看系统信息,/dev/mapper/centos-home
分区已经删除,但是在
/etc/fstab
中还有启动配置,删除该配置, 然后重启即可.