Stage 8, Part 3 of 9, Storage Deep Dive

Text

PART 3: PRODUCTION FAILURE MODES

16. Top 10 Storage Failures

#FailureSymptomRoot CauseFix
1PVC stuck PendingPVC never bindsNo matching PV, StorageClass issueCheck describe Events
2Volume attach failurePod stuck ContainerCreatingVolume in wrong zone, node limitCheck Events, zone
3Volume mount failurePod fails to startFilesystem corruption, mount optionsCheck Events, node logs
4Expansion failurePVC resize stuckDriver doesn't support, filesystem issueCheck Events, driver
5Snapshot creation failureSnapshot stuckSnapshotClass missing, driver issueCheck Events, CRDs
6Data lossData gone after PVC deleteDelete reclaim policyUse Retain
7Volume stuck in ReleasedPV not reusableRetain policy, manual cleanup neededDelete PV manually
8IOPS throttlingSlow performanceStorage limitsIncrease IOPS tier
9Zone mismatchPod can't mountPod and volume in different zonesUse WaitForFirstConsumer
10Local PV node failureData unavailableNode-local storageBackup, replication

17. Storage Debugging Runbook

"PVC is Pending" — Step-by-Step

text
STEP 1: Check PVC status
  $ kubectl get pvc <pvc-name>
  $ kubectl describe pvc <pvc-name>
  # Read Events

STEP 2: Check StorageClass
  $ kubectl get storageclass
  $ kubectl get storageclass <class-name> -o yaml
  # Verify provisioner, parameters

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

STEP 4: Check for volume attach issues
  $ kubectl get volumeattachments
  $ kubectl describe volumeattachment <name>

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

STEP 6: Check zone
  # For zonal storage (EBS, PD, Azure Disk)
  # Pod must be in same zone as volume

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

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

STEP 9: Escalate

Quick Diagnostic Table

SymptomFirst CheckThen
PVC Pendingkubectl describe pvcCheck StorageClass
Volume attach failkubectl get volumeattachmentsCheck zone
Mount failPod EventsNode logs
Expansion stuckkubectl describe pvcCheck driver support
Snapshot failkubectl describe volumesnapshotCheck SnapshotClass

18. Blast Radius Analysis

What Happens When Storage Fails?

ComponentImpactSeverity
Storage backend downAll stateful workloads failSEV-1
CSI driver downNew volumes can't provisionSEV-1
Volume attach failurePods stuckSEV-2
Data corruptionData lossSEV-1
Zone failureZonal volumes unavailableSEV-1
Snapshot failureBackup gapsSEV-2

Mitigation Strategies

StrategyImplementation
Replicated storageCeph, Longhorn
Regular backupsVelero
SnapshotsFast recovery
Multi-AZZone-aware provisioning
Retain policyPrevent accidental deletion

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