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.

已提问 1 年前545 查看次数
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
专家
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则