This topic describes how to create and manage a file system.
Activated NAS
Log on to the ENS console.
In the left-side navigation pane, choose
.Click Activate Now and follow the on-screen instructions to activate NAS.
Create a file system
This topic describes how to create a file system and mount the file system on multiple compute instances. This way, multiple clients can access the file system at the same time.
Log on to the ENS console.
In the left-side navigation pane, choose
.On the NAS page, click Create NAS File System.
On the NAS Collaborative Storage page, configure the following parameters and click Confirm.
Parameter
Description
Billing Method
Only the pay-as-you-go billing method is supported.
File System Name
The name of the file system. The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (
-
), and underscores (_
).Storage
ENS Region: The edge node for which you want to create a NAS file system.
Storage Type: The storage type of the file system. Valid values: Capacity and Extreme.
Storage Protocol: The protocol type of the NAS file system. Only NFS is supported.
Network ID/Name: the ID or name of the virtual private cloud (VPC) to which the edge node belongs.
Mount Point: the name of the mount target. A NAS file system must be mounted on an ENS instance by using a mount target before the NAS file system can be accessed by the ENS instance. The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (
-
), and underscores (_
).
NoteA file systems cannot be directly connected to an ENS instance on a different edge node. Make sure that the file system and the ENS instance to be mounted are on the same edge node.
Click Confirm.
NoteAfter you create a file system, you must mount the file system on an ENS instance to enable shared access.
After you create a file system, you are charged for the file system based on the maximum storage usage on an hourly basis.
You can create a NAS file system for multiple edge nodes but for only one edge node at a time in the ENS console.
Delete a file system
If you no longer use a NAS file system, you can remove all files from the NAS file system and delete the NAS file system. If a file system has related resources or configurations, such as mount targets, you must clear these resources and configurations before you delete the file system.
Log on to the ENS console.
In the left-side navigation pane, choose
.On the NAS page, find the file system that you want to delete and click Delete in the Actions column.
In the message that appears, click OK.
Create a mount target
A mount target is an access point of a NAS file system in the classic network or a VPC. After you create a NAS file system, you must create a mount target for the file system. Then, you can use the mount target to mount the file system.
You can create only one mount target for each NAS file system. Before you create a mount target for a NAS file system, make sure that the existing target of the NAS file system is deleted.
Log on to the ENS console.
In the left-side navigation pane, choose
.On the NAS page, find the NAS file system that you want to manage and click Manage in the Actions column.
On the details page of the NAS file system, click Add Mount Point.
On the Add Mount Point page, configure the parameters described in the following table.
Parameter
Description
Network ID/Name
Select a VPC. If you have not created a VPC, create one first.
If you want to mount the file system on an ENS instance, you must set this parameter to the VPC where the ENS instance resides.
Mount Point
The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (
-
), and underscores (_
).Click OK. You can view the mount target on the NAS page.
View a mount target
Log on to the ENS console.
In the left-side navigation pane, choose
.On the NAS page, find the NAS file system that you want to manage and click Manage in the Actions column.
You can view the mount target address and mount commands on the NAS page.
Mount target addresses for the NFS v3 protocol and the NFS v4 protocol are separately listed. Select a mount target address that is compatible with the protocol for mounting.
By default, the UID information is added to mount target addresses for the NFS v3 protocol as a part of the file system directory.
For example, if a mount target address for the NFS v4 protocol is
100.64.XXX.XXX:/share/test
, the mount target address of the NFS v3 protocol is100.64.XXX.XXX:/UID/share/test
.Mount commands: Place the cursor over the
icon to view the mount commands for the NFS v3 and NFS v4 protocols. You can also use the shortcut key to copy the mount command.
Delete a mount target
Before you delete the existing mount target of a NAS file system, make sure that no data is written to or read from the NAS file system and all files in the NAS file system are deleted.
Log on to the ENS console.
In the left-side navigation pane, choose
.On the NAS page, find the NAS file system that you want to manage and click Manage in the Actions column.
On the details page of the NAS file system, find the mount target that you want to delete and click Delete in the Actions column.
In the message that appears, click OK.
After you delete a mount target, you cannot restore the mount target. Proceed with caution.
If you delete a mount target without unmounting the file system from the ENS instance, the ENS instance may not respond to commands. If you do not need to use the mount target to mount the file system, we recommend that you unmount the file system from the ENS instance and then delete the mount target.
Related API operations
For more information about the API operations that are used to manage NAS file systems, see CreateFileSystem.