xfs_info(8)
๐ xfs_info(8) ๐
xfs_info is part of the System Manager's Manual ๐, so this is the official page for it. Let's get into it ๐งโจ
๐ธ NAME ๐ธ
xfs_info โ display XFS filesystem geometry information ๐
๐ SYNOPSIS ๐
xfs_info [ -t mtab ] [ mount-point | block-device | file-image ]
xfs_info -V
โจ DESCRIPTION โจ
okay so xfs_info is how you peek at the geometry of an XFS filesystem that already exists ๐ It tells you how the filesystem is laid out ๐บ๏ธ
You can point it at a mount-point, which is just the pathname of a directory where the filesystem is mounted ๐ Or you can give it a block-device or file-image, which holds a raw XFS filesystem ๐พ
Nothing gets touched!! The existing contents of the filesystem stay exactly as they are ๐ซถ It's read-only vibes only ๐งโโ๏ธ
๐ฆ OPTIONS ๐ฆ
-tโ pick your own mount table file ๐๏ธ By default it uses/proc/mountsif that exists, otherwise/etc/mtab. You'd reach for this when you're dealing with filesystems that got mounted without writing to the/etc/mtabfile. Check outmount(8)for the deets ๐ Heads up: this one does nothing when you're using the block-device or file-image parameters ๐-Vโ prints the version number and then exits ๐ท๏ธ You don't need a mount-point when you use-V, so skip it ๐
๐ EXAMPLES ๐
Let's decode some xfs_info output, bestie ๐ค
Suppose one has the following "xfs_info /dev/sda" output:
meta-data=/dev/pmem0 isize=512 agcount=8, agsize=5974144 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=1
= reflink=1
data = bsize=4096 blocks=47793152, imaxpct=25
= sunit=32 swidth=128 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=23336, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
okay so look at the data section ๐ It says bsize=4096, which means the data block size for this filesystem is 4096 bytes ๐ That's the main thing to catch ๐ฏ
Now the same section also shows sunit=32 swidth=128 blks, and this is giving stripe math ๐งฎ The stripe unit works out to 32*4096 bytes = 128 kibibytes โจ The stripe width is 128*4096 bytes = 512 kibibytes ๐ฅ So one stripe of this filesystem is made up of four stripe units (128 blocks / 32 blocks per unit) ๐ Slay the math ๐
๐ง SEE ALSO ๐ง
mkfs.xfs(8), md(4), lvm(8), mount(8) ๐
bestie, that's the whole page ๐ซถ The footer just says xfs_info(8) with no version or date listed, so that's all I've got for the source info ๐ Stay iconic and go read some geometry output ๐ฆ๐
๐ฆ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 ยท LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 ยท LGPL-2.1-or-later
- alpine 3.24: xfsprogs-doc 7.0.1-r0 ยท LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 ยท GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: xfsprogs 6.16.0-1.el10 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- centos-stream 9: xfsprogs 6.4.0-9.el9 ยท GPL+ and LGPLv2+
- centos-stream 9: xfsprogs 6.4.0-9.el9 ยท GPL+ and LGPLv2+
- debian bookworm: xfsprogs 6.1.0-1 ยท GPL-2.0-only
- debian trixie: xfsprogs 6.13.0-2+deb13u1 ยท GPL-2.0-only
- fedora 43: xfsprogs 6.15.0-3.fc43 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 43: xfsprogs 6.15.0-3.fc43 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 ยท GPL-1.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: xfsprogs 6.19.0
- nixpkgs unstable: xfsprogs 7.2.1
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 ยท GPL-2.0-or-later
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2 ยท GPL-2.0-only
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2 ยท GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu questing: xfsprogs 6.13.0-2ubuntu2 ยท GPL-2.0-only
- ubuntu resolute: xfsprogs 6.18.0-3 ยท GPL-2.0-only
- ubuntu stonking: xfsprogs 6.19.0-1 ยท GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms