Here just list most common XFS File System Utilities, take a try if they are just you are looking for

Beside mkfs.xfs, xfs_repair, xfs_freeze, xfs_growfs. Here are some utilities for managing XFS file systems:


Used to defragment mounted XFS file systems. When invoked with no arguments, xfs_fsr defragments all regular files in all mounted XFS file systems. This utility also allows users to suspend a defragmentation at a specified time and resume from where it left off later.
In addition, xfs_fsr also allows the defragmentation of only one file, as in xfs_fsr /path/to/file. Red Hat advises not to periodically defrag an entire file system because XFS avoids fragmentation by default. System wide defragmentation could cause the side effect of fragmentation in free space.


Prints the map of disk blocks used by files in an XFS filesystem. This map lists each extent used by a specified file, as well as regions in the file with no corresponding blocks (that is,holes).


Prints XFS file system information


Changes the parameters of an XFS file system. The xfs_admin utility can only modify parameters of unmounted devices or file systems.


Copies the contents of an entire XFS file system to one or more targets in parallel. The following utilities are also useful in debugging and analyzing XFS file systems:


Copies XFS file system metadata to a file. Red Hat only supports using the xfs_metad ump utility to copy unmounted file systems or read-only mounted file systems; otherwise, generated dumps could be corrupted or inconsistent.


Restores an XFS metadump image (generated using xfs_metadump) to a file system image.


Debugs an XFS file system


xfs_io is a debugging tool similar to the utility xfs_db, but is aimed at examining the regular file I/O paths rather than the raw XFS volume itself. For a full list of all the parameters/options that can be passed, please consult the relevant man page: man xfs_io

XFS Quota Management - xfs_quota

xfs_quota gives the administrator the ability to manage limits on disk space. XFS quotas can control or report usage on users, groups or directory project level. XFS quotas are enabled at mount time. You may specify the "noenforce" option which allows reporting of usage, however, it does not enforce any limits. For full details of XFS quotas see the relevant man page: man xfs_quota

Suspending a XFS File System with xfs_freeze

The command to suspend access or resume write activity to a xfs file system is "xfs_freeze". Generally this option is used for suspending write activity thus allowing hardware based device snapshots to be used to capture the file system in a consistent state.


The xfs_estimate utility is used to estimate the amount of space that a xfs file system will take.


xfs_mkfile is used to create a xfs file. The file is padded with zeroes by default. The default size is in bytes, but it can be flagged as kilobytes, blocks, megabytes, or gigabytes with the k, b, m, or g suffixes respectively.


xfs_logprint prints the log of a XFS file system. The device argument is the pathname of the partition or logical volume containing the filesystem. The device can be a regular file if the "-f" option is used. The contents of the file system remain undisturbed.


xfs_rtcp copies a file to the real-time partition on a XFS file system. If there is more than one source and target, the final argument (the target) must be a directory which already exists.


The utility xfs_ncheck is used to generate a list of inode numbers along with path names.


xfsdump is a file system incremental dump utility that is used in conjunction with xfsrestore. xfsdump backs up files and their attributes in a xfs file system. The files can be dumped to storage media, a regular file, or to standard output. Various dump options allow the administrator to create a full dump or an incremental dump. You may also specify a path to limit the files that are dumped.


xfsrestore restores filesystems from dumps produced by xfsdump. For a full list of all available parameters and options available to xfsdump and xfsrestore, please consult the relevant man pages



XFS User Guide XFS User Guide

RHEL - XFS File System - Storage Administration RHEL - XFS - Storage Administration

Comments powered by CComment