Interview Prep/Linux/Disk, Capacity & Backups

How do you do capacity planning for disk?

IntermediateProductionDisk, Capacity & Backups
Answer

Track usage over time per filesystem (Prometheus node_filesystem_avail_bytes), compute growth rate, and forecast days-until-full. Alert on prediction, not only thresholds:

predict_linear(node_filesystem_avail_bytes{mountpoint="/data"}[6h], 4*3600) < 0

Plan expansions when forecast hits ~70–80%, include inodes, account for growth spikes (backups, reindexing, log bursts), and review quarterly with application owners.

All Linux questions Roadmap: Linux

More on Disk, Capacity & Backups