Create a NAS file system

Updated at:

This topic describes how to create a NAS file system, including the prerequisites, limits, billing, procedure, and how to confirm the creation result.

Background information

By default, the cloud computers in the same office network cannot share files. If you need to exchange files between multiple cloud computers, or to centrally store logs or backup data, you can create a NAS file system. A General-purpose NAS file system is mounted to the cloud computers in the office network so that you can access shared files as if they were local directories.

You must select a protocol type when you create a NAS file system. The protocol determines which client is used for mounting and does not restrict the operating system of the cloud computer:

  • NFS: We recommend that you use NFS for Linux cloud computers. After a NAS file system is created, it is automatically mounted to the Linux cloud computers in the same office network when you log on. Windows cloud computers can also mount NFS file systems, but NFS has limited compatibility with Windows. Automatic mounting is being rolled out in phases.

  • SMB: We recommend that you use SMB for Windows cloud computers. After a NAS file system is created, it is automatically mounted to both Windows and Linux cloud computers in the same office network when you log on.

Both protocols can be mounted to Linux and Windows cloud computers. Only the client tools and commands differ. For more information, see Mount a NAS file system on Linux cloud computers.

You can create multiple NAS file systems in the same office network. File systems that use the NFS and SMB protocols can coexist and are all mounted when you log on. Automatic mounting is triggered when you create a cloud computer, start a cloud computer, restart a cloud computer, or log back in after you log out. In these cases, the list of NAS file systems in the office network is re-read and the file systems are mounted.

Note

A running cloud computer is not mounted with a NAS file system immediately after the file system is created. You must log back in or restart the cloud computer for the file system to be mounted.

Prerequisites

  • File Storage NAS is activated. If File Storage NAS is not activated, log on to the File Storage NAS console and activate it as instructed on the page. Skip this step if File Storage NAS is already activated.

  • An advanced office network is created, and the cloud computers to be mounted reside in this office network.

  • The region is confirmed. A NAS file system must reside in the same region and the same office network as the cloud computers.

Limits

  • Only advanced office networks support NAS file systems. You cannot create a NAS file system in a basic office network. If your cloud computers reside in a basic office network, migrate them to an advanced office network first, and then create a file system for the advanced office network.

  • A NAS file system can be mounted only to the cloud computers in the office network that is selected when the file system is created. Cloud computers in other office networks cannot access the file system.

  • The encryption type can be set only during creation. After the file system is created, encryption cannot be disabled.

  • General-purpose NAS supports the NFS and SMB protocols. CPFS supports only custom office networks and is not covered in this topic.

  • The protocol type is determined when the file system is created. Determine the protocol based on the operating systems of the cloud computers in the office network in advance.

Billing

The NAS file system that you create in the Elastic Desktop Service console is a General-purpose NAS file system. Fees are charged by File Storage NAS based on the storage specification and storage usage (hourly peak). For more information, see Billing for General-purpose NAS.

After the file system is created, we recommend that you purchase NAS resource plans to offset pay-as-you-go bills. After the purchase, the offset automatically takes effect without manual binding.

Procedure

Select a file system type

  1. Log on to the EDS enterprise console.

  2. In the left-side navigation pane, choose Network and Storage > NAS File Systems.

  3. In the top navigation bar, select the region.

  4. Click Create NAS File System.

  5. Select a file system type and click Next.

    • General-purpose NAS: supports the NFS and SMB protocols. This topic describes this type.

    • CPFS: supports only custom office networks.

Configure parameters

  1. Name: The name must be 2 to 128 characters in length, start with a letter or a Chinese character, and can contain digits, underscores (_), and hyphens (-).

  2. Office Network: Select the advanced office network to which the file system is to be mounted. If the drop-down list is empty, see the FAQ section.

  3. Description: Optional. The description must be 2 to 128 characters in length and follow the same naming rules as the name.

  4. Encryption Type:

    • No Encryption: Static encryption is not enabled.

    • NAS-managed Key: Encrypts the file system by using a key that is managed by NAS. This option cannot be disabled after the file system is created.

  5. Storage Specification: Capacity, Performance, and Advanced are supported.

    Note

    The three storage specifications differ in capacity, bandwidth, and latency. Select a specification based on your workloads. For more information, see General-purpose NAS.

  6. Protocol Type:

    • NFS: We recommend that you use NFS for Linux cloud computers. The file system is automatically mounted after it is created.

    • SMB: We recommend that you use SMB for Windows cloud computers. The file system is automatically mounted after it is created.

  7. Click Confirm.

Confirm the creation result

  1. Return to the NAS File Systems page and find the new file system.

  2. Make sure that Status is Running and Mount Target Status is Activated.

  3. Record the mount target domain. You need it when you mount the file system in a cloud computer.

Verify the mount result

After a NAS file system is created, it is automatically mounted to the cloud computers in the same office network when you log on. No configuration is required in the cloud computers. To verify the mount result:

  • Linux cloud computers: Run findmnt -t nfs,cifs. If the output contains /mnt/nas-<NAS file system ID> (NFS) or /mnt/nas-<NAS file system ID>-myshare (SMB), the file system is mounted.

  • Windows cloud computers: Run net use to view the drive letters of SMB file systems, or check This PC for network drives. Drive letters are assigned by the system.

Note

If a file system is not mounted after you log on, log back in or restart the cloud computer. No manual mounting is required in the cloud computer.

FAQ

What do I do if no office network can be selected when I create a NAS file system?

Possible causes:

  • File Storage NAS is not activated.

  • No advanced office network exists in the current region.

First make sure that File Storage NAS is activated. Then, on the Network and Storage > Office Networks page, check whether an advanced office network exists. If no advanced office network exists, create one and try again.

What do I do if the mount target status remains not Activated for a long time?

Mount target creation takes time. Refresh the page later. If the status becomes Invalid, see "Reset a mount target" in Manage NAS File Systems.