Interview Prep/Linux/Disk space, inodes and filesystems

An app logs `Disk quota exceeded` but `df` shows plenty of space.

BeginnerTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → The app's user or group has reached its quota.

Diagnose →

sudo quota -u appuser
sudo repquota -a                     # ext4
sudo xfs_quota -x -c 'report -h' /home   # XFS

Fix → Clean up the user's files or raise the limit with setquota / xfs_quota -x -c 'limit bhard=20g appuser'.

Prevent → Warn on soft-limit breaches before the hard limit hits.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems