Multi-Attach error for volume “pvc-xxx” Volume is already exclusively attached to one node and can’t be attached to another
Steps to recover from on-prem K8s cluster volume multi attach error
kubectl delete pod –force –grace-period=0
或者,工作节点突然离线;
原因分析
我们猜测是因为:集群状态未得到及时更新,导致集群认为存储还在被使用,而无法继续使用;
解决方案
# 如果是节点离线,可以考虑删除节点; # 或者,删除 VolumeAttachment 对象 kubectl get volumeattachment kubectl delete VolumeAttachment xxxxxxx