- Newest
- Most votes
- Most comments
Based on the information provided, it appears that the main issue preventing your EFS from mounting is likely related to security group configurations. Here are some steps to troubleshoot and resolve the problem:
-
Security Group Configuration: Although you've allowed inbound traffic on ports 22, 80, and 443, and all traffic between the subnets, EFS requires specific port access. Ensure that your EC2 instances' security group allows inbound and outbound traffic on port 2049 (NFS) from the EFS mount targets' security group.
-
EFS Security Group: The default security group for your EFS allowing all traffic may not be sufficient. Create a new security group for EFS that explicitly allows inbound NFS traffic (TCP port 2049) from your EC2 instances' security group.
-
Network ACLs: Check if there are any Network ACLs in place that might be blocking the necessary traffic between your EC2 instances and EFS mount targets.
-
VPC DNS Settings: Ensure that DNS hostnames and DNS resolution are enabled in your VPC settings. This is crucial for DNS-based mounting.
-
Mount Command: When using the EFS mount helper, make sure to include the '_netdev' option in your mount command. This ensures that the network file system is initialized after the instance's networking starts. For example:
sudo mount -t efs -o tls,_netdev fs-xxxxxxxx:/ /mnt/efs
-
IAM Permissions: If you're using IAM authorization for EFS, verify that your EC2 instances have the necessary IAM permissions to access the EFS file system.
-
Connectivity Test: Since you can't ping the mount target IPs, there might be a network connectivity issue. Try using 'telnet' to test connectivity to the EFS mount target on port 2049.
If these steps don't resolve the issue, you may need to review your VPC configuration, ensure that your EC2 instances and EFS are in the same VPC, and double-check that the mount target IPs are correct for your EFS file system.
Sources
Troubleshooting mount issues - Amazon Elastic File System
Mounting EFS file systems using the EFS mount helper - Amazon Elastic File System
Having trouble mounting an EFS to an EC2 instance | AWS re:Post
Relevant content
- asked 3 years ago
- Accepted Answerasked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago