Description
Determining whether the Cluster Server (VCS) Mount agent runs an xfs_repair operation to correct an XFS filesystem can be proven by checking the Mount agent log. For example, consider the following resource for such a filesystem:
Mount xfs_mount (
MountPoint = "/xfsfs"
BlockDevice = "/dev/mapper/LVMtestvg-LVMtestvol"
FSType = xfs
MountOpt = rw
FsckOpt = "-y"
)
In the log below (Mount_A.log), the Mount agent has to run an xfs_repair, which it declares in the line in bold listed below:
2025/02/28 00:26:23 VCS NOTICE V-16-10031-5511 Mount:xfs_mount:online:Trying force mount...
2025/02/28 00:26:23 VCS NOTICE V-16-10031-5516 Mount:xfs_mount:online:Running fsck...
2025/02/28 00:26:23 VCS NOTICE V-16-10031-5569 Mount:xfs_mount:online:Running xfs_repair
2025/02/28 00:26:24 VCS INFO V-16-2-13716 Thread(140233468462848) Resource(xfs_mount): Output of the completed operation (online)
mount: /xfsfs: mount(2) system call failed: Structure needs cleaning.
Metadata corruption detected at 0x560fe07b6cd7, xfs_inode block 0xa0/0x4000
The Mount agent will automate an attempt at xfs_repair only if the FsckOpt = "-y" construct is set in the VCS main.cf file.