记录一次服务器断电,直接进入救援模式

因意外断电进入服务器直接进入救援模式提示查看日志:

journalctl -xe 

查看报错日志为:

failed to mount /sysroot. 
Dependency failed for Initrd root File System. 
Dependency failed for Reload configuration from the Real Root. 

解决问题: 

xfs_repair -v -L /dev/sda3

说明:-L是修复xfs文件系统的最后手段,慎重选择,它会清空日志,会丢失用户数据和文件。  sda3挂载着我的根目录

修复完成后进行重启:

reboot
原文地址:https://www.cnblogs.com/heze93/p/15337031.html