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 réponse
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
EXPERT
répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions