xfs_info(8)
Display information about XFS filesystems, including geometry, block size, and mount options.
Synopsis
xfs_info [OPTION]... MOUNT_POINT | DEVICEDescription
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
| Flag | What it does |
|---|---|
-t | Display only the first line (terse output); useful for scripting |
-p | Display info for each allocation group separately (per-AG summary) |
-v | Verbose output; display additional details about filesystem structure |
Examples
Show full information about the XFS filesystem mounted at /mnt/data
xfs_info /mnt/dataDisplay XFS filesystem info for the device /dev/sda1 (can be unmounted)
xfs_info /dev/sda1Print a single-line summary of the filesystem; good for parsing in scripts
xfs_info -t /mnt/storageShow per-allocation-group details and view first 20 lines of output
xfs_info -p /mnt/data | head -20Display blocksize information for the root filesystem
xfs_info / | grep blocksize