Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

XFS · Filesystems

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting XFS in Filesystems.

First 30 seconds

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.

Operational verification

file → AG → inode → extents

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and repair traps

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.

Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse it when configuring, checking or troubleshooting XFS in Filesystems.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • xfs_info <mount> — geometry
  • xfs_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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

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%
Terminology layer

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.

Aliases that resolve here
xfsxfs filesystemlinux xfs
Embedded reference data

Quick lookup tables

Filesystems → XFS filesystem map

Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → XFS.

Filesystem boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?