Use it when configuring, checking or troubleshooting XFS in Filesystems.
XFS · Filesystems
XFS organizes storage into allocation groups to scale metadata operations and journals metadata changes. Online growth is supported, while shrink support and repair behavior depend on implementation/version and must not be assumed.
1. XFS: RHEL default, great for large files and parallel I/O.
2. Grows online; cannot shrink.
3. Dynamic inodes.
4. Repair with xfs_repair (unmounted).
5. Reflink for cheap copies.
file → AG → inode → extents
Context & applicabilityCommon mistakes · platform/version boundaries
A mounted XFS filesystem shows namespace availability for tested operations, but it does not show all allocation groups or backing storage are healthy.
Suspicious evidence: metadata shutdowns, forced read-only behavior, recurring XFS errors, or repair is attempted while storage errors remain unresolved.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Linux path → VFS → XFS inode/allocation-group metadata → block device/volume → storage backend
Healthy evidence: expected XFS mount is active, allocation succeeds, filesystem messages are clean and representative I/O completes without correlated lower-layer errors.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- XFS allocation groups ≠ RAID stripes.
- Journal recovery ≠ full data validation.
- xfs_repair ≠ generic online fix.
- Large free capacity ≠ absence of metadata or underlying I/O faults.
xfs_info <mount>— geometryxfs_repair -n /dev/<dev>— dry-run check (unmounted)xfs_db -r -c frag /dev/<dev>— fragmentation
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
A mounted XFS filesystem shows namespace availability for tested operations, but it does not show all allocation groups or backing storage are healthy.
In depth
XFS splits the filesystem into allocation groups that can be used in parallel, which scales well on many CPUs and large volumes. It allocates inodes dynamically, supports reflink copies (cp --reflink) and is the default on RHEL.
mkfs.xfs -L data /dev/vg0/data
xfs_info /data # AG count, block size, log size, reflink
xfs_growfs /data # grow online (by mount point)
xfs_repair -n /dev/vg0/data # dry-run check, filesystem unmounted
xfs_db -r -c frag /dev/vg0/data
XFS cannot shrink. Plan sizes or use LVM thin volumes where shrinking might be needed, and if xfs_repair refuses because of a dirty log, mount once to replay it before resorting to -L (which discards the log).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystems → XFS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Filesystems → XFS filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → XFS.
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | A mounted XFS filesystem proves namespace availability for tested operations; it does not prove all allocation groups or backing storage are healthy. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: expected XFS mount is active, allocation succeeds, filesystem messages are clean and representative I/O completes without correlated lower-layer errors. | Close only after the original path/workload and read-back check succeeds |