74.5k views
5 votes
Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will compact or otherwise improve the layout of the contiguous blocks of file data for an XFS filesystem?A. defrag

B. xfs_fsr
C. fsck
D. xfs_db

User Amit Bakle
by
4.8k points

2 Answers

5 votes

Answer:

B. xfs_fsr

Step-by-step explanation:

xfs_fsr is used for Defragmentaion of xfs files. It works by improving the organization of the disk extents of every file to ensure that contiguous space is being used. This tool performs online defragmentation meaning that it can be run on a file system that is currently mounted and in use, just be aware of the increased I/O usage that will come as a result , it may be best to run it during a period of low disk activity if possible on a production system.

User Batfan
by
4.5k points
3 votes

Answer:

The best answer is "B"

xfs_fsr

Step-by-step explanation:

The is a typical format of the command to use:

xfs_metadump -o /dev/sdb1 /reviewxfs

User Aiden
by
4.7k points