Lesson 3 of 9 · 24m
Capacity Planning That Survives Real Growth
Build capacity forecasts from ingestion, retention, churn, overhead, and rebuild headroom rather than dividing raw disk size by today's usage.
Capacity planning fails when teams treat storage as a static number on a purchase order. Real capacity is a moving system: data ingests, snapshots accumulate, replicas multiply, logs rotate badly, applications churn, filesystems reserve overhead, and free space disappears fastest when everyone is already busy. The dangerous state is not 95% full; it is discovering that the last 20% is operationally unusable.
Measure the rates that matter
Start with daily observations, not guesses:
df -hT /srv/data
zfs list -o name,used,avail,refer,compressratio,mountpoint
du -xsh /srv/data/* 2>/dev/null | sort -hThen separate growth into components:
ingestion new data arriving per day
retention how long data must remain
churn how much existing data changes
replication copies required locally and remotely
snapshots changed-block retention cost
overhead RAID parity, metadata, compression variance
headroom free space needed for repair and performanceA workload adding 20 GB per day with 90 days retention does not simply need 1.8 TB. If it churns 100 GB per day under snapshots kept for 14 days, snapshot growth can dwarf raw ingestion.
Leave operational headroom
Copy-on-write filesystems and parity RAID need space to breathe. As a rule of thumb, treat 80% as the point where planning becomes urgent and 90% as an incident boundary, then adjust by filesystem behavior. ZFS performance degrades as pools fill because allocation becomes fragmented; thin-provisioned systems can fail catastrophically when the backing pool fills even while individual volumes look fine.
Track date, used capacity, daily delta, and the projected 80% date in a spreadsheet or monitoring system. Use rolling averages and percentiles. One migration can poison a naive average; one backup failure can also hide real application growth.
Count usable capacity honestly
Ten 18 TB disks are not 180 TB of usable storage. Decimal versus binary units already shrink the number before redundancy:
10 x 18 TB decimal ~163.7 TiB raw
RAID6 with 2 parity ~131 TiB before filesystem overhead
reserved free space 20% ~105 TiB operationally usableCompression helps only when the data compresses. Already-compressed video, encrypted backups, and database pages often do not. Measure with a representative sample before counting savings.
Capacity is also performance
Full disks fragment allocations, SSDs lose write performance without spare area, and arrays spend IOPS rebuilding instead of serving applications. Capacity planning therefore includes performance headroom: queue depth, latency, rebuild impact, and whether the backup window still fits as data grows.
Field notes
- Alert on projected exhaustion dates, not only static percentage thresholds.
- Snapshot and clone growth should be visible per dataset; hidden refs confuse deletion math.
- Thin provisioning makes allocation someone else's problem until the shared pool fills.
- Keep emergency deletion procedures documented and tested, including what must never be deleted.
- Budget purchases around procurement lead time; disks rarely arrive instantly when growth accelerates.
Was this lesson helpful?