开发者社区> 问答> 正文

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启动失败,自动转到急救模式



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



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



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



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



参考:
* https://serverfault.com/questions/777299/proper-way-to-deal-with-corrupt-xfs-filesystems
* https://prasadlinuxblog.wordpress.com/2017/12/26/xfs_check-and-xfs_repair-of-lvm-under-rescue-mode-on-centos-7-oraclelinux-7/
* https://forums.unraid.net/topic/42059-failed-disk-and-possible-xfs-repair/

展开
收起
dongshan8 2018-11-23 14:14:55 9702 0
0 条回答
写回答
取消 提交回答
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载