File size: 1,831 Bytes
d086025 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | # 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)
|