XFS (dm-0): Metadata I/O error

转载

https://blog.csdn.net/sunny05296/article/details/107081963

 

断电后重启报下列相关错误:
XFS (dm-0): Metadata I/O error ...
XFS (dm-1): Failed to recover EFIs
Please umount the filesystem and rectify the problem(s)...

其中 centos-root 对应 /dev/mapper/dm-0,centos-swap 对应 dm-1
ls -l /dev/mapper/
lrwxrwxrwx 1 root root 7 May 22 11:21 centos-root -> ../dm-0
lrwxrwxrwx 1 root root 7 May 22 11:21 centos-swap -> ../dm-1

尝试下列修复办法:
xfs_repair /dev/mapper/centos-root #或者: xfs_repair /dev/dm-0
或者加-L参数: Force log zeroing. Do this as a last restort.
xfs_repair -L /dev/mapper/centos-root #后者 xfs_repair -L /dev/dm-0

posted @ 2024-07-05 22:57  Augustone  阅读(4)  评论(0编辑  收藏  举报