問題:雲環境下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將日志歸零,即使它包含臟數據(元數據更改)