Pcornel
Automation · Storage Automation

Capacity Checks

Cheat sheet · https://pcornel.dk/topic.php?topic=5753

Back to the Topic

Answer

Capacity checks in storage automation monitor free space and growth of file systems, pools and volumes, alerting or expanding storage before a threshold like 80 % is reached.

Remember

  • Compare usage with thresholds and trends.
  • Alert well before full.
  • Expand automatically only where safe.

First checks

  • df -h; zpool list; ceph df — capacity
  • predict_linear(node_filesystem_avail_bytes[7d], 30*86400) < 0 — forecast
  • Pre-provision capacity gate — automation guard

Verify in this order

usage → thresholds/forecast → gate/alert

Where it usually breaks

Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.

Storage Automation → Capacity Checks · operational reference

LayerStorage Automation → Capacity Checks operational reference
Runtime/ownershipstorage capacity automation and threshold checks · the storage platform telemetry source plus automation logic that converts raw/usable/reserved capacity into an actionable threshold decision
Persistent intentversioned scope, metric definition, units, warning/critical thresholds, forecast window and suppression/exception rules
VerificationRead capacity from the authoritative storage API/CLI for one pool and one child volume, compute the automation threshold from the same timestamp, and compare the proposed action with platform headroom.
Expected interpretationThe automation evaluates the intended storage object using current, correctly interpreted capacity metrics and raises/acts only when the reviewed threshold and safety headroom are actually breached.
Recovery boundaryfreeze automated expansion/deletion when metric semantics are uncertain, preserve raw samples, repair the calculation/scope, then compare current platform counters before resuming action

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5753

Confirmation

Confirm action

Continue?