Scenarios
A file system created using a snapshot contains all the data in the snapshot, and the used capacity of the file system is consistent with the data of the source file system at the current snapshot creation time.
Snapshot creation enables cross-AZ replication and sharing of file systems.
For a file system created using a snapshot, a file service protocol can be freely selected, which is not limited by the type of source file system protocol, and the network can also be reselected.
Operation Steps
- Log in to the CFS console.
- On the Snapshot List page, click Create File System in the Action column on the right side of the target snapshot.
- In the pop-up dialog box, set the following parameters:
| Field | Description |
|---|---|
| Name | Enter a custom name for the file system. |
| AZ | Select the AZ for which you want to create a CFS file system. |
| Project | Optional. When a file system is created, its associated project can be set. |
| Storage Class | Select the desired storage type, Standard Storage or High-Performance Storage. |
| File Service Protocol | Select the protocol type of the file system, NFS or SMB. The NFS protocol is more suitable for Linux/Unix clients, and the CIFS/SMB protocol is more suitable for Windows clients. |
| Snapshot | Optional. When creating a file system using a snapshot, you should select Use Snapshot to Create File System and select the snapshot you need to use. If you choose to create a file system using a snapshot, the initial data volume in the file system will be consistent with the snapshot size. |
| Network Type | - VPC. To achieve file system sharing by CVM under a VPC, you need to select a VPC when creating a file system. When the file system uses a VPC, only CVM instances within the same VPC can be mounted if no special network settings are made. - If you have multi-network file system sharing needs, see Cross-Network Access to File Systems. |
| Permission Group | Each file system should be bound to a permission group, which defines a group of allowlists with access permissions and read and write operation permissions. |
| Tag | - If you already have a tag, you can add the tag for the new file system here. - If you do not have a tag yet, go to the tag console to create a desired tag and bind it to the file system. You can also add a tag to the file system after the file system is created. |
- Click OK.
You can view the created file system on the File System List page. See Quick Start to mount the file system to a client in the same AZ.