Centos断电后启动失败

发布时间 2023-10-20 13:10:59作者: tomoncle

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

image

发现为/dev/mapper/centos-home分区启动失败导致. 查看系统信息,/dev/mapper/centos-home分区已经删除,但是在
/etc/fstab中还有启动配置,删除该配置, 然后重启即可.