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

    技术2022-07-14  59

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

     

     

    Processed: 0.010, SQL: 9