Book Image

Troubleshooting CentOS

By : Jonathan Hobson
Book Image

Troubleshooting CentOS

By: Jonathan Hobson

Overview of this book

Table of Contents (17 chapters)
Troubleshooting CentOS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 umount the device in question. In this respect, the entire procedure will be as follows:

# umount /mount/point
# xfs_repair /mount/point

The resulting output will then proceed to run through a series of phases and confirm the relevant events. Once complete...