Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Pod Stuck in Pending State As Container Fails to Mount Persistent NFS Volumes
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
A pod is stuck in a pending state as the container fails to mount the NFS volume. We observe the below error while running kubectl describe command for the affected pod.
$ kubectl describe pod <pod-name>...Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedMount 26m (x15 over 60m) kubelet, XX.XX.XX.XX Unable to attach or mount volumes: unmounted volumes=[volume-name], unattached volumes=[volume-name [name]-svc-token-f7227]: timed out waiting for the condition Warning FailedMount 111s (x40 over 60m) kubelet, XX.XX.XX.XX (combined from similar events): MountVolume.SetUp failed for volume "pvc-uuid" : mount failed: exit status 32Mounting command: systemd-runMounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/[id]/volumes/kubernetes.io~nfs/pvc-[id] --scope -- mount -t nfs XX.XX.XX.XX:/path/to/nfs/storage /var/lib/kubelet/pods/[id]/volumes/kubernetes.io~nfs/pvc-[id]Output: Running scope as unit: run-[id].scopemount: /var/lib/kubelet/pods/[id]/volumes/kubernetes.io~nfs/pvc-[id]: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.[type] helper programEnvironment
- Platform9 Managed Kubernetes - All Versions
- Persistent Volumes
- NFS
Cause
The package nfs-common is not available on the node which is required to mount the Persistent Volume shared using NFS.
Resolution
Install the package nfs-common on the node on which the affected pod is running. Once the package is installed the pod will be able to mount the volume on the next retry.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message