文件系统错误问题
测试服务器中途报错,然后重启后也是如此,报错如下:
/dev/mapper/VolGroup-lv_root:UNEXPECTED INCONSISTENCY;RUN fsck MANUALLY. (i.e., without -a or -p options)
AN error occurred during the file system check.
Dropping you to a shell; the system will reboot
when you leave the shell.
Give root password for maintenance.
(or type Control-D to continue):
首先我们根据报错提示进行排查:
“an error occurred during the file system check”是说检查文件系统的时候发现错误:
报错截图如下:
个人首次排错思路,直接执行: fsck-ytext4/dev/sda1 ,重启后结果依然不生效。
后续排错思路:
首先清除规则,然后执行fsck 修复文件系统,然后重启:
生产环境下,出现类似问题,建议做好相应的数据备份,然后再进行排查操作,以防止重要数据的丢失。此方法仅供参考。