Running repairs on XFS

XFS was created with the intention to support extremely large filesystems. It performs incredibly well under a heavy load and scales with large files, but as a result, it is also susceptible to damage, and it is with this in mind that we now consider a set of tools that will enable us to troubleshoot the server and restore the filesystem.

Known as xfs_repair, this tool is used to confirm filesystem consistency and repair any problems that are found. This process will not restore lost data, but it should restore the filesystem on the device in question.

The basic syntax used by xfs_repair is as follows:

# xfs_repair /mount/point

However, to avoid any error messages, the procedure will then require that you should initially ...

Get Troubleshooting CentOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.