Not Able to Mount PVC for pod

Sai Teja Reddy Gurujala 1 Reputation point
2022-03-24T14:13:31.007+00:00

We have deployed PVC and MySql DB pod in AKS ..one of devs accidentally restarted the db pod which results into following error.

MountVolume.SetUp failed for volume "pvc-f000d3cf-475d-4664-a977-5af1dbe6acdf" : mount failed: exit status 32 Mounting command: mount Mounting arguments: -t nfs -o vers=3 10.120.18.99:/export/pvc-f000d3cf-475d-4664-a977-5af1dbe6acdf /var/lib/kubelet/pods/f6e8043b-b18c-4a58-ab4e-a4bcdb522776/volumes/kubernetes.io~nfs/pvc-f000d3cf-475d-4664-a977-5af1dbe6acdf Output: mount.nfs: access denied by server while mounting 10.120.18.99:/export/pvc-f000d3cf-475d-4664-a977-5af1dbe6acdf.

Any Help would be much appreciated

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,999 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,171 Reputation points Microsoft Employee
    2022-03-24T23:56:06.37+00:00

    Hello @Sai Teja Reddy Gurujala ,
    Based upon the error message "Output: mount.nfs: access denied by server while mounting 10.120.18.99:/export/pvc-f000d3cf-475d-4664-a977-5af1dbe6acdf."
    It seems the AKS Pod which it is trying to mount the file share from the storage account does not have the right permissions"

    One of the reason might be:- Check if the storage account is firewall enabled.
    If the storage account is behind the Firewall , try to add AKS VNET/Subnet in the Storage Account Networking Firewall

    Also please check your PV , PVC yaml files and validate the NFS version, sometimes these will happen due to NFS version mismatch

    0 comments No comments