xfs_repair 修复 CentOS 7 Metadata corruption detected 启动失败问题

一VMware虚拟机,CentOS7系统,启动后未能成功进到系统,提示 Corruption of in-memory data detected, shutting down filesystem, please umount the filesystem and rectify the problem.

过程:

1.CentOS7启动失败,自动转到急救模式
xfs-repair-1.jpg

2.journalctl -xe # 查看错误日志,提示 /dev/mapper/cl-root 挂载失败
xfs-repair-2.png

3.mount /dev/mapper/cl-root /dmnt # 尝试手动挂载,失败。提示 Structure needs cleaning
xfs-repair-3.png

4.xfs_replair -L /dev/mapper/cl-root # 尝试重建
xfs-repair-4.png

5.init 6 # 重建log后,重启机子,正常了
xfs-repair-5.jpg

参考:

标签: centos

添加新评论