Skip to content

NFS Mount Failed

Errors

Source
bash
Events:
  Type     Reason       Age                      From     Message
  ----     ------       ----                     ----     -------
  Warning  FailedMount  9m39s (x19102 over 26d)  kubelet  MountVolume.SetUp failed for volume "pvc-510bc02e-2f64-4457-bcf5-dfdb284c3294" : mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t nfs -o noatime,noresvport,vers=4.1 192.168.80.50:/monitor-vmstorage-volume-vm-cluster-victoria-metrics-cluster-vmstorage-0-pvc-510bc02e-2f64-4457-bcf5-dfdb284c3294 /var/lib/kubelet/pods/13dd5fda-7bc9-41be-83ba-ba6f0b8265fa/volumes/kubernetes.io~nfs/pvc-510bc02e-2f64-4457-bcf5-dfdb284c3294
Output: mount.nfs: mounting 192.168.80.50:/monitor-vmstorage-volume-vm-cluster-victoria-metrics-cluster-vmstorage-0-pvc-510bc02e-2f64-4457-bcf5-dfdb284c3294 failed, reason given by server: No such file or directory
  Warning  FailedMount  3m33s (x13418 over 26d)  kubelet  Unable to attach or mount volumes: unmounted volumes=[vmstorage-volume], unattached volumes=[vmstorage-volume kube-api-access-cr9qt]: timed out waiting for the condition
Key Error
bash
reason given by server: No such file or directory

Solutions

  • Create dir on nfs server manually.
  • Delete pv and recreate it.