文件系统错误问题
测试服务器中途报错,然后重启后也是如此,报错如下:
/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 修复文件系统,然后重启:

生产环境下,出现类似问题,建议做好相应的数据备份,然后再进行排查操作,以防止重要数据的丢失。此方法仅供参考。
推荐阅读:
Ubuntu下搭建nfs网络文件系统服务器 http://www.linuxidc.com/Linux/2013-07/87367.htm
一台Linux服务器上挂载另一台Linx服务器文件系统的方法 http://www.linuxidc.com/Linux/2013-07/87183.htm
MFS文件系统部署(2台服务器) http://www.linuxidc.com/Linux/2013-03/80261.htm
配置CentOS 5.8上使用ACFS集群文件系统 http://www.linuxidc.com/Linux/2013-02/79797.htm
