Cross-region NAS access via VPC peering requires careful configuration of multiple components. Let me walk through the complete setup and troubleshooting process.
Architecture Overview:
When mounting NAS across regions using VPC peering:
• NAS mount target exists in Region A VPC (192.168.0.0/16)
• ECS instances in Region B VPC (172.16.0.0/16)
• VPC peering connects the two VPCs
• NFS traffic flows through peering connection
Required Configuration Steps:
1. NAS Access Rules (Critical)
The NAS permission group must explicitly allow the Region B VPC CIDR:
NAS Console → File Systems → Select your NAS → Permission Groups → Edit:
• Add rule: IP Address = 172.16.0.0/16 (Region B VPC CIDR)
• Permission: Read/Write
• User Permission: no_squash (preserves user IDs)
• Priority: 1 (higher priority than other rules)
Wait 2-3 minutes after adding the rule before testing - changes aren’t instant.
2. VPC Peering Route Configuration
Verify routes exist in both directions:
Region A VPC route table:
• Destination: 172.16.0.0/16 (Region B)
• Next Hop: VPC peering connection
Region B VPC route table:
• Destination: 192.168.0.0/16 (Region A)
• Next Hop: VPC peering connection
3. Security Group Rules
Region B ECS security group (outbound):
• Allow TCP/UDP port 2049 (NFS)
• Allow TCP/UDP port 111 (RPC portmapper)
• Allow TCP/UDP ports 1024-65535 (NFS dynamic ports)
• Destination: 192.168.1.100/32 (NAS mount target IP)
Region A mount target security group (if applicable):
• Allow inbound from 172.16.0.0/16 on same ports
4. NFS Mount Command
Use these mount options for cross-region mounts:
mount -t nfs -o vers=3,nolock,proto=tcp,noresvport,rsize=1048576,wsize=1048576 192.168.1.100:/nas-share /mnt/remote-nas
Key options explained:
• vers=3: Use NFSv3 (more reliable for cross-region)
• nolock: Disable file locking (reduces network round-trips)
• proto=tcp: Force TCP protocol (more stable than UDP for long-distance)
• noresvport: Don’t use privileged source ports (helps with NAT/peering)
• rsize/wsize: Large buffer sizes for better throughput
Troubleshooting Steps:
Step 1: Verify Network Connectivity
From Region B ECS:
telnet 192.168.1.100 2049
telnet 192.168.1.100 111
Both should connect. If telnet fails, issue is network layer (routes/security groups), not NAS permissions.
Step 2: Check RPC Services
rpcinfo -p 192.168.1.100
Should list NFS services. If this fails, RPC ports are blocked.
Step 3: Test with Verbose Mount
mount -vvv -t nfs -o vers=3 192.168.1.100:/nas-share /mnt/remote-nas
Check output for specific error (authentication, protocol, permission).
Step 4: Verify Permission Group Assignment
NAS Console → Mount Targets → Check which permission group is attached to the mount target at 192.168.1.100. Ensure it’s the group you edited.
Common Issues:
Issue 1: Wrong Permission Group
Solution: NAS file systems can have multiple mount targets, each with different permission groups. Verify you edited the correct group for the mount target IP you’re accessing.
Issue 2: Security Group Blocking RPC
Solution: NFS requires multiple ports. Many admins only open 2049, forgetting port 111 and dynamic ports. Open full port range 111-65535 for testing, then narrow down.
Issue 3: NFSv4 vs NFSv3
Solution: Cross-region mounts work better with NFSv3. If you’re using vers=4 or auto-negotiation, force vers=3.
Issue 4: Source IP Not Matching Rule
Solution: The NAS sees the source IP as the ECS instance’s private IP in Region B. Use ip addr show on the ECS to confirm its IP, then verify that IP falls within the CIDR range you added to the NAS access rules.
Performance Considerations:
Cross-region NAS mounts have higher latency than same-region:
• Shanghai ↔ Beijing: ~30-40ms latency
• Throughput limited by inter-region bandwidth
• Use larger rsize/wsize (1MB) to reduce round-trips
• Consider async mount option for write-heavy workloads
For disaster recovery, evaluate if you need real-time access or if periodic sync (rsync/ossutil) would be more efficient.
Alternative Architecture:
If cross-region NAS mount performance is inadequate:
• Use OSS for cross-region data replication (OSS Cross-Region Replication)
• Mount NAS locally in each region, sync via scheduled jobs
• Use CEN (Cloud Enterprise Network) instead of VPC peering for better inter-region bandwidth
Your Specific Issue:
Based on your error, most likely causes:
- The Region B CIDR (172.16.0.0/16) is not in the NAS permission group, OR
- You added it to the wrong permission group (not the one attached to mount target 192.168.1.100), OR
- Security group is blocking port 111 (RPC portmapper)
Verify permission group assignment first, wait 3 minutes after adding the rule, then test with the full mount command including all options I provided above.