断电后重启后报XFS文件系统错误 XFS (dm-0): Metadata I/O error

断电后重启报下列相关错误:
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

init 6 #重启

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章