csi-mount-failed

CSI 挂载失败

现象

Pod 卡在 ContainerCreating,事件显示 MountVolume.SetUp failed、failed to mount、no such device 或 timeout expired waiting for volumes to attach/mount;PVC 处于 Pending 或挂载超时。

快速定位

kubectl describe pod <POD> -n <NS> | grep -A30 Events
kubectl get pvc,pv -n <NS>
kubectl -n kube-system get pods | grep csi
kubectl -n kube-system logs <CSI_NODE_POD> --tail=100

节点上检查挂载:

mount | grep <PVC>
dmesg | tail -50
lsblk

常见根因

修复

相关命令