https://stackoverflow.com/questions/77121599/how-can-i-mount-my-aws-efs-from-my-ec2-server?

0

I have an AWS server running Ubuntu and cannot mount a newly created EFS by either EFS mount helper, NFS client or via IP.

I tried just what AWS suggested:

EFS mount helper -

sudo mount -t efs -o tls fs-xxxxxxxxxxxxx:/ efs

It attempts 3 times to mount then it reports

b'mount.nfs4: mount system call failed'

NFS client -

sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-fs-xxxxxxxxxxxxx.efs.eu-west-2.amazonaws.com:/ efs

Reports

mount.nfs4: Connection timed out

And via IP

sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport <IP.address>:/ efs

Reports

mount.nfs4: Connection timed out

And now I don't know what to do. the server and EFS are in the same region and the three security groups are set to allow all traffic, so port 2049 isn't blocked.

What do you suggest? I have ploughed through acres of AWS guides and I am at a loss.

已提問 8 個月前檢視次數 416 次
1 個回答
0

Hello.

Are you aware that EFS and EC2 are in the same VPC?
The security group seems to allow all traffic, but does the network ACL allow it?
Can you check whether the inbound rule of the security group set for the EFS mount point really allows NFS?
https://docs.aws.amazon.com/efs/latest/ug/network-access.html

profile picture
專家
已回答 8 個月前
profile pictureAWS
專家
已審閱 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南