/dev/mapper/VolGroup-lv_root: unexpected inconsistency; run fsck manually 解决办法
文件系统错误问题
测试服务器中途报错,然后重启后也是如此,报错如下:
/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”是说检查文件系统的时候发现错误:
处理方法:
第一步进入single user mode:
#init 1
第二部:
#fsck.ext4 -y /dev/mapper/vo_lo_vms_root (fsck -t ext4 -y /dev/mapper/vo_lo_vms_root)
第三部:
# reboot