ExitStatus32 kubernetes runtime_error ai_generated true

挂载卷 "pvc-xxx" 失败:rpc 错误:代码 = 内部描述 = 挂载失败:退出状态 32

MountVolume.SetUp failed for volume "pvc-xxx" : rpc error: code = Internal desc = rpc error: code = Internal desc = mount failed: exit status 32

ID: kubernetes/failed-to-mount-volume

其他格式: JSON · Markdown 中文 · English
80%修复率
85%置信度
1证据数
2024-03-10首次发现

根因分析

CSI 驱动程序或节点文件系统无法挂载持久卷,通常是由于文件系统类型不正确、磁盘损坏或节点上缺少挂载工具。

English

The CSI driver or node filesystem fails to mount the persistent volume, often due to incorrect filesystem type, corrupted disk, or missing mount utilities on the node.

generic

官方文档

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-errors

解决方案

  1. Check the node's filesystem and repair it: ssh to the node and run 'sudo fsck -y /dev/<device>' or 'sudo xfs_repair /dev/<device>' if using XFS.
  2. Ensure the 'nfs-common' or 'cifs-utils' package is installed on the node: 'sudo apt-get install -y nfs-common' for NFS volumes.

无效尝试

常见但无效的做法:

  1. Restart the kubelet service on the node 80% 失败

    Kubelet restart doesn't repair underlying filesystem issues or CSI driver bugs; the mount operation still fails.

  2. Delete and recreate the PersistentVolumeClaim 70% 失败

    The PVC is bound to a specific PV; recreating it doesn't fix the node-level mount failure unless the underlying volume is repaired.