Stage 8, Part 7 of 9, Storage Deep Dive

Text

PART 7: INCIDENT MANAGEMENT

34. Storage Incident Post-Mortem Template

text
INCIDENT: PVC Expansion Failure - Database Disk Full
DATE: 2024-01-15
DURATION: 47 minutes
SEVERITY: SEV-1
IMPACT: PostgreSQL database unable to write. All API calls failed.

TIMELINE:
  14:00 - Alert: Database disk usage 100%
  14:03 - On-call acknowledged
  14:05 - Attempted to expand PVC
  14:08 - Expansion stuck in "Resizing" state
  14:10 - Identified CSI driver doesn't support online expansion
  14:15 - Stopped database Pod
  14:20 - Expansion completed offline
  14:25 - Restarted database
  14:30 - Service restored
  14:47 - Incident closed

ROOT CAUSE:
  CSI driver didn't support online expansion for this volume type.
  No monitoring on storage capacity.

LESSONS LEARNED:
  1. Verify online expansion support before relying on it.
  2. Alert at 80% disk usage, not 100%.
  3. Test expansion in staging.

ACTION ITEMS:
  [ ] Add storage capacity alerting at 80% (Owner: SRE)
  [ ] Verify all CSI drivers support online expansion (Owner: Platform)
  [ ] Document offline expansion procedure (Owner: Platform)

35. On-Call Runbook: Storage Failures

text
SYMPTOM: Storage-related failures.

STEP 1: Identify the issue
  $ kubectl get pvc -A | grep -v Bound
  $ kubectl get pv | grep -v Bound

STEP 2: Check PVC status
  $ kubectl describe pvc <name>
  # Read Events

STEP 3: Check CSI driver
  $ kubectl get pods -n kube-system | grep csi
  $ kubectl logs -n kube-system <csi-pod>

STEP 4: Check volume attachments
  $ kubectl get volumeattachments
  $ kubectl describe volumeattachment <name>

STEP 5: Check node capacity
  $ kubectl describe node <node> | grep -A5 "Attachable Volumes"

STEP 6: Check zone
  # For zonal storage, verify Pod and volume are in same zone

STEP 7: Check expansion (if resizing)
  $ kubectl describe pvc <name>
  # Look for FileSystemResizePending

STEP 8: Check snapshots (if restoring)
  $ kubectl get volumesnapshot -A
  $ kubectl describe volumesnapshot <name>

STEP 9: Escalate

36. Escalation Matrix

SeverityImpactResponse TimeEscalation
SEV-1Data loss / all stateful workloads down5 minOn-call + Platform + Management
SEV-2Single PVC stuck / expansion failure15 minOn-call + Platform
SEV-3Slow storage performance1 hourOn-call
SEV-4Capacity planning warning4 hoursTicket

1:1 copy of the class Google Doc, code in code blocks.