A pod waits because its ReadWriteOnce disk is still on another node
Your error
Multi-Attach error for volume "pvc-0a1b2c3d" Volume is already exclusively attached to one node and can't be attached to another2 more lines it can showFix it fast
Most common cause, 1 of 2Two pods on different nodes want the same ReadWriteOnce volume
Run one replica and set the Deployment strategy to Recreate, so the old pod is killed before the new one is created.
# deployment.yaml
spec:
replicas: 1
strategy:
type: Recreate
# then
kubectl apply -f deployment.yamlShort answer
Multi-Attach error for volume, already exclusively attached to one node, means a ReadWriteOnce disk is still held by a node other than the new pod's. Either a pod there still uses it (replicas above 1, a rolling update), or that node died before detaching. Switch to one replica with the Recreate strategy, or clear the dead node. Kubernetes 1.37 prints Waiting for detach instead.
Which cause do you have?
Read the FailedAttachVolume event on the waiting pod, then list where each volume is attached. An event that names other pods points to cause 1. An event with no pod names, and an attachment on a node that is NotReady or gone, points to cause 2.
kubectl describe pod web-7d9f8c6b5-x2k4p | grep -A3 FailedAttachVolume
kubectl get volumeattachment -o custom-columns=PV:.spec.source.persistentVolumeName,NODE:.spec.nodeName,ATTACHED:.status.attached
kubectl get nodesThen find the line you see in this list and open its fix:
- 1Two pods on different nodes want the same ReadWriteOnce volume
The event lists pod names: Volume is already used by pod(s) followed by a pod that is still running elsewhere - 2The old node went down before it could detach the disk
The event says already exclusively attached with no pod names, and the VolumeAttachment points at a node that is NotReady or deleted
What does the error look like?
Multi-Attach error for volume "pvc-0a1b2c3d" Volume is already exclusively attached to one node and can't be attached to anotherMulti-Attach error for volume "pvc-0a1b2c3d" Volume is already used by pod(s) web-7d9f8c6b5-x2k4pWaiting for detach for volume "pvc-0a1b2c3d" Volume is already exclusively attached to one node, waiting on detach before it can be attached to another node
Cause 1 of 2
Two pods on different nodes want the same ReadWriteOnce volume
You seeThe event lists pod names: Volume is already used by pod(s) followed by a pod that is still running elsewhere
Check
A Multi-Attach error that names pods means another pod on another node still mounts the ReadWriteOnce volume. ReadWriteOnce allows one node at a time. Kubernetes' attach/detach code calls the typical case a ReplicaSet with more than one replica sharing a PVC. A single-replica Deployment hits it too: RollingUpdate's default maxSurge of 25% rounds up to one extra pod, which can land on a second node before the old pod stops.
kubectl get pods -o wide -l app=webFix
Run one replica and set the Deployment strategy to Recreate, so the old pod is killed before the new one is created. If each replica needs its own disk, move the workload to a StatefulSet with volumeClaimTemplates, which gives every pod its own claim. Several pods that truly share files need a ReadWriteMany storage class.
# deployment.yaml
spec:
replicas: 1
strategy:
type: Recreate
# then
kubectl apply -f deployment.yamlVerify
Only one pod uses the claim, it reaches Running, and the next rollout finishes without a FailedAttachVolume event.
kubectl rollout status deployment/webConfirmed by kubernetes.io
Cause 2 of 2
The old node went down before it could detach the disk
You seeThe event says already exclusively attached with no pod names, and the VolumeAttachment points at a node that is NotReady or deleted
Check
The no-pod-names form of the error appears when no pod needs the disk on the old node, yet its VolumeAttachment still sits there. The controller waits for that node to unmount first, and a crashed or powered-off node never confirms. Kubernetes force-detaches once a pod deletion has failed for 6 minutes on an unhealthy node, unless kube-controller-manager sets disable-force-detach-on-timeout.
kubectl get node node-1 -o wideFix
Wait out the timeout, or, once you have confirmed the node is shut down or powered off and not restarting, mark it out of service. Kubernetes then force-deletes its pods and detaches their volumes at once. Remove the taint yourself after the pods have moved and the node is recovered.
kubectl taint nodes node-1 node.kubernetes.io/out-of-service=nodeshutdown:NoExecute
# after the pod runs on a healthy node:
kubectl taint nodes node-1 node.kubernetes.io/out-of-service=nodeshutdown:NoExecute-Verify
The VolumeAttachment for the PV now names the new node with ATTACHED true, and the pod starts.
kubectl get volumeattachment -o custom-columns=PV:.spec.source.persistentVolumeName,NODE:.spec.nodeName,ATTACHED:.status.attachedConfirmed by kubernetes.io
How do I stop it coming back?
- Give every Deployment that mounts a ReadWriteOnce claim strategy type Recreate and one replica, and catch it in review.
- Use the ReadWriteOncePod access mode, stable since Kubernetes 1.29, when a disk must never be shared by two pods.
- Put databases and other one-disk-per-replica apps in a StatefulSet with volumeClaimTemplates instead of a Deployment.
- Alert on nodes that stay NotReady, and follow the out-of-service steps instead of force-deleting pods by hand.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine on the same stack: Dispatch Pro.