How To Use XFS_repair
The XFS report device is a superb filesystem that helps a most of 500 TB of report device and 16 TB of report dimension.
Starting in 2001, XFS has transform the most well liked report device to be had in quite a lot of Linux distros. Currently, XFS is the default filesystem within the distributions like RHEL, Rocky Linux, CentOS, and different RedHat-based distros.
Table of Contents
1. How To Use XFS_repair
2. Conclusion
Hence, this filesystem works smartly because of its immense pace. However, it’s not proof against problems and mistakes, so XFS_repair turns out to be useful on this scenario. Although XFS_repair is a well-liked application, many newcomers don’t find out about it. This information gives you a temporary on use the XFS_repair simply.
How To Use XFS_repair
The XFS filesystem mistakes often happen because of the anticipated shutdown, write mistakes, {hardware} failure, and many others. Let’s get started with the elemental details about the XFS_repair.
XFS_rapair is a extremely scalable application advanced to fix the huge report device temporarily. This application handiest works at boot time for those who cleanly unmount the XFS report device. In case of the unclean unmount, the XFS_repair application replays a log on the mount time to make sure a constant report device. Therefore, it is very important to unmount the report device, or else the XFS_repair report does no longer restore the corrupted report device. Here is the elemental syntax of XFS_repair you’ll be able to use:
xfs_repair <choices> dev/software>
Moreover, the XFS_repair handiest works within the debug model of xfs_db so use it accordingly.
First, run the lsblk command to checklist all of the to be had units:
Here, you’re going to get the details about the XFS report device mount level. Now, run the next command to fix the XFS report device. For example, the XFS is provide within the /dev/sdb in an effort to run the next command:
To be certain that the whole thing works fantastic, you’ll be able to run the next command to mount the purpose once more:
If you need to test extra concerning the XFS_repair, then you’ll be able to run the next command:
Conclusion
This is how you’ll be able to simply use easy instructions and carry out the XFS_repair in Linux. We used Pop!_OS to accomplish the former steps as a result of it’s in line with Ubuntu. We counsel you take a look at the mount level as it is very important to get details about it whilst operating the XFS_repair. Moreover, you additionally wish to mount and unmount the software accurately to get rid of the probabilities of mistakes.