# Runbook: Disk Full **Severity:** P1 **Impact:** Node cannot write data, may crash, data loss possible **On-Call Action:** Respond immediately (15 min) ## Symptoms - [ ] Disk usage > 90% - [ ] Write operations failing - [ ] Node logs show "No space left on device" - [ ] Git push operations fail - [ ] Database write errors ## Detection **Alert Name:** `GutsDiskSpaceCritical` **Query:** Or system-level: **Dashboard:** Node Exporter → Disk Usage ## Diagnosis ### Step 1: Check Disk Usage ### Step 2: Identify Large Files ### Step 3: Check for Runaway Growth ### Step 4: Identify Cause Common causes: - **Git objects accumulation:** Large repos, many pushes - **Log files:** Debug logging enabled - **Pack files:** Git garbage collection not running - **Consensus logs:** WAL files not archived - **Backups:** Old backups not cleaned up ## Resolution ### Option A: Clean Up Safe-to-Delete Files ### Option B: Run Git Garbage Collection ### Option C: Archive Old Data ### Option D: Expand Storage (Cloud) #### AWS EBS #### GCP Persistent Disk ### Option E: Add Additional Storage ### Option F: Emergency: Remove Non-Critical Data **⚠️ Use only if node is completely stuck:** ## Prevention ### Configure Monitoring Add alerts at 80% and 90%: ### Set Up Automatic Cleanup ### Configure Log Rotation ## Escalation If unable to free space quickly: 1. **Notify users:** Write operations may fail 2. **Consider failover:** If multi-node, direct traffic elsewhere 3. **Emergency storage:** Provision emergency volume ## Post-Incident - [ ] Verify node is healthy - [ ] Document what consumed space - [ ] Implement prevention measures - [ ] Review storage sizing - [ ] Update capacity planning ## Related Runbooks - [High Memory](high-memory.md) - [Data Corruption](data-corruption.md)