XFS is a high performance filesystem.
Cheatsheet[edit | edit source]
|Create a XFS filesystem||
|Check XFS filesystem||
|Defragment a XFS filesystem||
|Resize a XFS filesystem||
|Creates a XFS filesystem dump into a file||
|Restore a XFS filesystem from a dump||
Tasks[edit | edit source]
Growing a filesystem[edit | edit source]
xfs_growfs to expand a XFS filesystem to its maximum size of its underlying partition or device. This can be done while the filesystem is online.
# resize2fs /dev/mapper/cl_hpcmonitor-metrics resize2fs 1.45.4 (23-Sep-2019) Filesystem at /dev/mapper/cl_hpcmonitor-metrics is mounted on /var/metrics; on-line resizing required old_desc_blocks = 83, new_desc_blocks = 89 The filesystem on /dev/mapper/cl_hpcmonitor-metrics is now 186122240 (4k) blocks long.
Shrinking a filesystem[edit | edit source]
You can't. You need to destroy and recreate the filesystem. You can use
xfsrestore to help with this.