centos 7 意外断电重启/修复系统
例如 提示以下错误
—
[sda] Assuming drive cache: write through
Internal error xfs XFS_WANT_CORRUPTED_GOTO at line 1662 of file fs/xfs/libxfs/xfs_alloc.c Caller xfs_free_extent+0x130 [xfs]
Internal error xfs_trans_cancel at line 990 of file fs/xfs/xfs_trans.c.Caller xlog_recover_process_efi +0x16b/0x190 [xfs]
Corruption of in-memory data detected. Shutting down filesystem
Please umount the filesystem and rectify the problem(s)
Failed to recover EFIs
Generating “/run/initramfs/rdsosreport.txt”
—
xfs_repair /dev/mapper/centos-root
一般只修复 root 就是/ 目录
下面这个命令是修复HOME数据盘的。
xfs_repair -L /dev/mapper/centos-home
修复完毕后。
reboot
重启服务器