The Problem
Found below error messages on the XFS filesystem.
kernel: XFS (dm-0): Corruption detected. Unmount and run xfs_repair kernel: XFS (dm-0): xfs_do_force_shutdown(0x8) called from line 1369 of file fs/xfs/xfs_buf.c. Return address = 0xffffffffa01efd4c kernel: XFS (dm-0): Corruption of in-memory data detected. Shutting down filesystem kernel: XFS (dm-0): Please umount the filesystem and rectify the problem(s) kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned. kernel: XFS (dm-0): xfs_log_force: error 5 returned.
The Solution
Here, XFS encountered an IO error while attempting to write data, this indicates some issue with the underlying storage devices or disks. We need to examine if there was an issue with the underlying storage devices and also XFS filesystem needs to be repaired using the below steps.
Step 1: Un-mount the XFS filesystem:
# umount /mount_point
Step 2: Run below command to repair the XFS filesystem.
# xfs_repair [device]