问题:云环境下CentOS系统断电或强制关机,再开机出现问题:Entering emergency mode. Exit the shell to continue.
Generating "/run/initramfs/rdsosreport.txt"
Entering emerfency mode. Exit the shell to continue.
Type "jaurnalctl" to view system logs.
You might want to saue "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.
解决方法:
1.查看系统日志,找到问题所在,发现有标红的,说明此处有问题;
:/# journalctl
2.输入命令
:/# xfs_repair -v -L /dev/dm-0
注:-L 选项指定强制日志清零,强制xfs_repair将日志归零,即使它包含脏数据(元数据更改)