we have redhat machines version – 6.x
all disks that mounted have xfs files system
as:UUID=198s5364-a29c-429e-b16d-e772acd /data_SA xfs rw,noatime,inode64,allocsize=16m 1 2
we want to fix the file system on some of the disks,
what is the right approach to use
- xfs_repair
- fsck.xfs
- fsck
Answer
From the fsck man page:
fsck.xfs is called by the generic Linux fsck(8) program at startup to check and repair an XFS filesystem. XFS is a journaling filesystem and performs recovery at mount(8) time if
necessary, so fsck.xfs simply exits with a zero exit status.
If you wish to check the consistency of an XFS filesystem, or repair a damaged or corrupt XFS filesystem, see xfs_repair(8).
Attribution
Source : Link , Question Author : shalom , Answer Author : Daniel