$linuxjunkies
>

xfs_info(8)

Display information about XFS filesystems, including geometry, block size, and mount options.

UbuntuDebianFedoraArch

Synopsis

xfs_info [OPTION]... MOUNT_POINT | DEVICE

Description

xfs_info displays detailed metadata about XFS filesystems, including filesystem geometry, block sizes, stripe unit/width, log information, and naming options. It can query either a mounted filesystem (via mount point) or an unmounted device.

This command is useful for performance tuning, capacity planning, and troubleshooting XFS filesystem configurations. Information displayed includes allocation group size, inode size, block size, and other critical filesystem parameters.

Common options

FlagWhat it does
-tDisplay only the first line (terse output); useful for scripting
-pDisplay info for each allocation group separately (per-AG summary)
-vVerbose output; display additional details about filesystem structure

Examples

Show full information about the XFS filesystem mounted at /mnt/data

xfs_info /mnt/data

Display XFS filesystem info for the device /dev/sda1 (can be unmounted)

xfs_info /dev/sda1

Print a single-line summary of the filesystem; good for parsing in scripts

xfs_info -t /mnt/storage

Show per-allocation-group details and view first 20 lines of output

xfs_info -p /mnt/data | head -20

Display blocksize information for the root filesystem

xfs_info / | grep blocksize

Related commands