EFS Mount Issue “Failed To Resolve Server: Name or Service Not Known”
When you face EFS mount issues on EC2 when you create it in the AWS cloud. you can mount this file system to any number of EC2 instances.
To resolve this issue, you have to follow the below solutions. so
Step 1: Start the rcpbind service so
service rpcbind restart
service nfs restart
NFS service is failed but you have to make sure the EFS mount target should be in the same availability zone.
Once the above task is done, you need to check DNS should be enabled in your VPC Network.
Click on Edit DNS hostname and resolutions.
Click on enable and save the settings.
Once it’s done, The output will look like below.
Now restart the rpcbind and nfs service.
Make an entry in /etc/exports & find the EFS IP address from Storage -> EFS then select your EFS
vim /etc/exports /root/nfs-share 10.0.0.65(rw,sync,no_root_squash,no_subtree_check,fsid=0)
And save the file.
You will be able to mount the EFS file system.
You’re done Efs mount issues create aws ec2