Interview Prep/Linux/Disk space, inodes and filesystems

Disk filled up overnight and `du` points at `/var/log/journal`, which is 18 GB.

BeginnerTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → No size limit on persistent journald, plus a chatty service logging in a loop.

Diagnose →

journalctl --disk-usage
journalctl --since "1 hour ago" -o short | awk '{print $5}' | sort | uniq -c | sort -rn | head

Fix → sudo journalctl --vacuum-size=1G, fix or quiet the noisy service, and set SystemMaxUse=1G in /etc/systemd/journald.conf, then systemctl restart systemd-journald.

Prevent → Keep the size cap in your baseline; use RateLimitBurst/RateLimitIntervalSec against log storms.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems