Storage · Linux Storage
XFS
Cheat sheet · https://pcornel.dk/topic.php?topic=4006
Answer
XFS is a high-performance journaling Linux file system and the default on RHEL. It scales well for large files and parallel I/O and can grow online, but cannot be shrunk.
Remember
- XFS can grow online but not shrink.
- Repair with xfs_repair on an unmounted file system.
- It scales well for large files.
First checks
xfs_info <mount>— geometryxfs_repair -n /dev/<dev>— checkxfs_growfs <mount>— grow
Commands
journalctl -k
Verify in this order
files → XFS AGs → block device
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4006