Cross-AZ Access in a VPC
If you need to have a CFS instance shared by multiple CVM instances in different AZs in the same region, configure the CVM and CFS instances into the same VPC to achieve cross-AZ access to resources.
Assume that there is a CVM instance in City Zone 1 that needs to use CFS, but file systems cannot be directly created in City Zone 1 as the resources are sold out there.
If the CVM is in the City1 Zone subnet of the VPC, you can log in to the VPC console to create a subnet with the availability zone being City2 Zone for the VPC.


After the subnet is successfully created, go back to the CFS console and select this VPC and the subnet created to create resources in City Zone 2. In this case, the CFS file system can be directly mounted to the CVM instance under the subnet of City Zone 1 in this VPC. For more information, see File System Mounting Assistance.
Cross-VPC and Cross-Region Access
CFS supports the following scenarios for resource access.
- A CFS instance needs to be shared by multiple CVM instances distributed in different VPCs.
- The CVM and CFS instances are in different VPCs.
- The CVM and CFS instances are in different regions (to achieve better access performance, it is recommended that the CVM and CFS instances be in the same region).
You can use a "peering connection" to achieve resource access across the CVM instances distributed in VPC-A/VPC-B and CFS instances distributed in VPC-C. For more information, see Peering Connection.