After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?
After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?
To fix inconsistencies in an XFS file system, you should use the xfs_repair command on the file system. This utility is specifically designed to check and repair XFS file systems and handles the unique structures and features of XFS. Before running xfs_repair, it is important to unmount the file system to prevent data corruption. The other options are either incorrect commands or do not apply to repairing XFS file systems.
xfs_repair /dev/sda3 command not found! anyone could confirm.
command is available on >centos 7.1
Ubuntu: xfs_repair repairs corrupt or damaged XFS filesystems (see xfs(5)).
xfs_repair: Repair a corrupted or damaged XFS file system. Unmount the file system before running this command. If the file system cannot be repaired, restore files from a backup with xfsrestore
You need to install the utilities to manage XFS file systems. In Debian/Ubuntu, for example, the package is called xfsprogs.
Tested on my system and working: E = xfs_repair /dev/sda3