McKube 0 requests sent

FailedMount & Multi-Attach Volume Error

Resolve ReadWriteOnce (RWO) volume Multi-Attach deadlocks during RollingUpdate deployments.

HIGH · FailedMount / PVC

Root Cause

A block storage volume (EBS, Persistent Disk, Ceph RBD) with accessMode ReadWriteOnce is still attached to the old node while the new Pod tries to mount it on another node.

How to Fix

  • For single-replica Deployments mounting an RWO PVC, switch spec.strategy.type from RollingUpdate to Recreate.
  • For multi-replica stateful workloads, use a StatefulSet with volumeClaimTemplates instead of a shared Deployment PVC.
  • Verify StorageClass volumeBindingMode: WaitForFirstConsumer so PVCs provision in the same AZ as the Pod.

Diagnostic Commands

kubectl get pvc,pv -n <ns>
kubectl get volumeattachment