EFS Mount Provisioned but empty

0

So I have an EFS file system set up with the aws-efs-csi-driver helm chart and a PVC set up with dynamic provisioning to the EFS share. I have a pod that mounts the partition but the application isn't seeing files. When I run exec -it /bin/sh on the pod, I see that the directory is mounted but it's completely empty. The fileshare has 153Gb so it definitely contains files.

1개 답변
1

There could be many possible reasons which can cause the issue.

  1. Your EFS file system might have been mounted to a different path within the pod other than the one the application is trying to access.
  2. The EFS file system ID specified in the PVC or the storage class might be incorrect, leading to mounting to a different EFS (empty) or an incorrect path.
  3. There could be a misconfiguration in the network or security group settings, which can prevent proper communication between EFS and Kubernetes nodes.
  4. The pod might not have the necessary IAM permissions to read from the EFS mount. Also, EFS file system policy can lead to limited read and write permission.

As a test, I would suggest you to try to mount the EFS on an EC2 instance and see if you are able to access the files or not. For more information on the steps, kindly refer to this AWS guide.

https://docs.aws.amazon.com/efs/latest/ug/wt1-test.html

I would recommend you to open a support case with AWS EFS team and provide the concerned EFS ID, AWS region and mount command along with the output of log collector script for better assistance.

https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/troubleshooting/README.md

AWS
지원 엔지니어
Nisha_K
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠