This topic describes how to create and manage file systems.
Activate collaborative storage NAS
Log on to the Edge Node Service (ENS) console.
In the left-side navigation pane, choose .
Click Activate Now and follow the on-screen instructions to complete the activation.
Create a file system
Create a file system and mount it on multiple compute instances to enable shared access to the file system.
Log on to the Edge Node Service (ENS) console.
In the left-side navigation pane, choose .
On the NAS page, click Create NAS File System..
On the NAS Collaborative Storage creation 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 collaborative storage NAS. The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (
-), and underscores (_).Storage
ENS Region: The edge node on which you want to create the collaborative storage NAS.
Storage Type: The storage type of the file system. Valid values: Capacity and Extreme.
Storage Protocol: The protocol type of the file system. Only the NFS protocol is supported.
Network ID/Name: The network ID and name of the VPC to which the file system belongs.
Mount Point: The name of the mount target. You must mount the file system on an ENS compute instance by using a mount target before an ENS compute instance can access the file system. The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (
-), and underscores (_). A file system in one edge zone cannot connect directly to an ENS compute instance in another edge zone. Make sure that the file system and the ENS compute instance that you want to mount it on are in the same edge zone.
Click Confirm Order to complete the file system creation.
NoteAfter you create the file system, you must mount it on an ENS compute instance before you can access the file system.
After you create the file system, you are charged each hour based on the maximum (peak) storage capacity that the collaborative storage NAS file system actually uses.
In the ENS console, you can create file systems on multiple edge nodes at the same time, but you can create only one file system in each edge zone at a time.
Delete a file system
If you no longer use a NAS file system, you can delete all files in the file system and then delete the file system instance. If the file system has associated resources or configurations, such as a mount target, delete them before you delete the file system.
Log on to the Edge Node Service (ENS) console.
In the left-side navigation pane, choose .
On the NAS Collaborative Storage list page, find the target file system and select Delete in the Actions column.
In the dialog box that appears, click OK.
Create a mount target
A mount target is the connection point of a NAS file system in a network environment. After you create a file system, add a mount target for it. Then, you can use the mount target to mount and access the NAS file system.
You can add only one mount target to each file system. Before you add a mount target, make sure that all existing mount targets are deleted.
Log on to the Edge Node Service (ENS) console.
In the left-side navigation pane, choose .
On the NAS Collaborative Storage list page, find the target file system and click Manage in the Actions column to go to the NAS Collaborative Storage details page.
On the NAS Collaborative Storage details page, 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 network that you created. If no network is available, create one first.
Select the same network as the ENS compute instance that you want to mount the file system on.
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 information on the NAS Collaborative Storage details page.
View mount target information
Log on to the Edge Node Service (ENS) console.
In the left-side navigation pane, choose .
On the NAS Collaborative Storage list page, find the target file system and click Manage in the Actions column to go to the NAS Collaborative Storage details page.
On the NAS Collaborative Storage details page, you can view the mount target address and the mount commands.
Mount target address: because the protocol versions differ, the mount target addresses for the NFS v3 protocol and the NFS v4 protocol are listed separately. Select the mount target address that matches the protocol you use.
By default, your UID is added to the mount target address for the NFS v3 protocol as part of the file system directory.
For example, if the mount target address for the NFS v4 protocol is
100.64.XXX.XXX:/share/test, the mount target address for the NFS v3 protocol is100.64.XXX.XXX:/UID/share/test.Mount command: place the cursor over the
icon to view the mount commands for the NFS v3 protocol and the NFS v4 protocol. You can also use a keyboard shortcut to copy a mount command and use it directly.
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 Edge Node Service (ENS) console.
In the left-side navigation pane, choose .
On the NAS Collaborative Storage list page, find the target file system and click Manage in the Actions column to go to the NAS Collaborative Storage details page.
On the NAS Collaborative Storage details page, find the mount target and click Delete in the Actions column.
In the dialog box 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 OpenAPI
For more information about the management OpenAPI operations for collaborative storage NAS, see Collaborative Storage NAS.