Interview Prep/Linux/Disk space, inodes and filesystems

`xfs_growfs /data` fails with `xfs_growfs: /data is not a mounted XFS filesystem` right after `lvextend`.

BeginnerTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → You passed the device instead of the mount point on an older xfsprogs, the filesystem is ext4, or a typo in the path.

Diagnose →

findmnt -no FSTYPE,SOURCE /data
lsblk -f

Fix → For XFS: xfs_growfs /data (mount point). For ext4: resize2fs /dev/vg0/data. Next time use lvextend -r to resize both in one step.

Prevent → Use lvextend -r in runbooks.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems