【修复】解决XFS (dm-0): metadata I/O error: block 0x305ced8 ("xfs_trans_read_buf_map") error 74 numblks 8
2021年02月19日 17:14:28 作者:Jiaozn 分类:Linux 评论(0)[root@rac2 ~]# tail -50 /var/log/messages
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): Metadata CRC error detected at xfs_dir3_block_read_verify+0x5e/0x110 [xfs], xfs_dir3_block block 0x305ced8
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): Unmount and run xfs_repair
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): First 64 bytes of corrupted metadata buffer:
Nov 14 19:08:54 rac2 kernel: ffff8830eaaae000: 31 30 31 32 30 0a 00 00 00 00 00 00 00 00 00 00 10120...........
Nov 14 19:08:54 rac2 kernel: ffff8830eaaae010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Nov 14 19:08:54 rac2 kernel: ffff8830eaaae020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Nov 14 19:08:54 rac2 kernel: ffff8830eaaae030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): metadata I/O error: block 0x305ced8 ("xfs_trans_read_buf_map") error 74 numblks 8
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): Metadata CRC error detected at xfs_dir3_block_read_verify+0x5e/0x110 [xfs], xfs_dir3_block block 0x305ced8
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): Unmount and run xfs_repair
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): First 64 bytes of corrupted metadata buffer:
Nov 14 19:08:54 rac2 kernel: ffff8830d8e53000: 31 30 31 32 30 0a 00 00 00 00 00 00 00 00 00 00 10120...........
Nov 14 19:08:54 rac2 kernel: ffff8830d8e53010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Nov 14 19:08:54 rac2 kernel: ffff8830d8e53020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Nov 14 19:08:54 rac2 kernel: ffff8830d8e53030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Nov 14 19:08:54 rac2 kernel: XFS (dm-0): metadata I/O error: block 0x305ced8 ("xfs_trans_read_buf_map") error 74 numblks 8
解决办法:
由于是根盘,所以无法umount修复:
[root@rac2 ~]# xfs_repair /dev/mapper/centos-root
xfs_repair: /dev/mapper/centos-root contains a mounted filesystem
xfs_repair: /dev/mapper/centos-root contains a mounted and writable filesystem
fatal error -- couldn't initialize XFS library
[root@rac2 ~]#
重启进入单用户模式
按e,末尾添加init=/bin/sh
按ctrl+x
然后xfs_repair -d /dev/dm-0或者xfs_repair -d /dev/mapper/centos-root
完成后,重启系统
[root@rac2 ~]# /oracle/app/19c/grid/bin/crsctl start crs
Oracle Clusterware infrastructure error in CRSCTL (OS PID 11059): Error in an OS-dependent function or service
Error category: -8, operation: access failed, location: SlfAccess, OS error: 30
OS error message: Read-only file system
Oracle Clusterware infrastructure error in CRSCTL (OS PID 11059): Unable to determine usability of ADR home path /oracle/app/grid/diag/crs/rac2/crs - error -8
CLSU-00107: operating system function: open; failed with error data: 30; at location: scrsval5
CLSU-00101: operating system error message: Read-only file system
CLSU-00104: additional error information: cant open file
CRS-4000: Command Start failed, or completed with errors.
[root@rac2 ~]#
[root@rac2 ~]#
[root@rac2 ~]# mount / -o rw,remount
[root@rac2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 47G 23G 25G 47% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 12M 3.8G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 1014M 146M 869M 15% /boot
tmpfs 781M 0 781M 0% /run/user/0
[root@rac2 ~]# vi 1.txt
dldl
~
~
~
"1.txt" [New] 1L, 5C written
[root@rac2 ~]# ps -ef|grep d.bin
root 11257 10938 0 19:55 pts/0 00:00:00 grep --color=auto d.bin
[root@rac2 ~]# /oracle/app/19c/grid/bin/crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
评论
发表评论