• Scalable File Service

sfs
  1. Help Center
  2. Scalable File Service
  3. User Guide
  4. Getting Started
  5. Creating a File System

Creating a File System

You can create a file system and mount it to multiple ECSs. Then the ECSs can share the file system.

Prerequisites

  1. Ensure that a VPC has been created. If no VPC exists, create one. For details, see Creating a VPC in the Virtual Private Cloud User Guide.
  2. Before creating a file system, check whether creating an ECS is required and ensure that the ECS belongs to a created VPC. For details about how to create an ECS, see Creating an ECS in the Elastic Cloud Server User Guide.

Procedure

  1. Log in to the management console and select Scalable File Service.
  2. In the upper right corner of the page, click Create File System.
  3. In the dialog box shown in Figure 1, set the parameters as described in Table 1.

    Figure 1 Creating a file system
    Table 1 Parameter description

    Parameter

    Description

    Remarks

    Name

    User-defined name of the file system. If you create more than one file system, a name suffix is added to each file system name. For example, if you set the name to sfs-share for two new file systems, the two file system names will be sfs-share-001 and sfs-share-002.

    The value can contain only letters, digits, underscores (_), and hyphens (-). When creating a single file system, the value can contain a maximum of 255 characters. When creating file systems in batches, enter a maximum of 1 to 251 characters.

    Region

    Mandatory

    Specifies the region of the tenant. Select the current region from the drop-down list in the upper left corner of the page.

    You are advised to select the same region as the ECS.

    AZ

    A geographical area with an independent network and an independent power supply.

    You are advised to select the same AZ as that of the ECS.

    VPC

    Select the same VPC as that of the ECSs. If no VPCs are available, apply for one.

    Click View VPC to view existing VPCs or apply for new ones. By default, all ECSs in a VPC have the same rights. You can modify the VPC in the future.

    NOTE:

    Upon creation, only one VPC can be added for each file system. After a file system is created, you can add multiple VPCs and IP addresses or address segments on the authorized VPC page.

    Total Capacity (GB)

    Maximum capacity of a single file system. When the used capacity of a file system reaches this value, no more data can be written to the file system. You need to expand the file system.

    Its value ranges from 1 to 512,000.

    Quantity

    Number of file systems to be created.

    Each cloud account can have a total of 512,000 GB for its file systems. Each cloud account can create a maximum of 10 file systems, one by one or in a batch.

    If the quantity or total capacity of the file systems you are creating exceeds the upper limit, contact customer service to apply for a higher quota. For details, see How Can I Apply for a Higher Quota?

    Encryption

    (Optional)

    This parameter specifies whether a file system is encrypted. You can create either an encrypted or an unencrypted file system, but you cannot change the encryption settings of an existing file system. If Encryption is selected, the following parameters will be displayed:

    • Create Xrole

      Xrole is a trust relationship between two tenants or services. A tenant can create an Xrole to grant resource access rights to another tenant or service. If the KMS access rights are not granted to SFS, this button will be displayed. Otherwise, this button will not be displayed.

      Click Create Xrole to grant the KMS access rights to SFS. The system automatically creates an Xrole and names it SFSAccessKMS. When SFSAccessKMS is displayed for Xrole Name, the KMS access rights have been granted to SFS, and SFS can obtain KMS keys for encrypting or decrypting the file system. After the rights are granted, follow-up operations do not need granting rights again.

    • Xrole Name
      • Xrole: An Xrole is a trust relationship between two tenants or services. A tenant can create an Xrole to grant resource access rights to another tenant or service.
      • SFSAccessKMS: If Xrole Name is SFSAccessKMS, KMS keys have been assigned to SFS to encrypt or decrypt the file system.
    • Key Name
      NOTE:

      KMS Key Name is displayed only after the SFSAccessKMS Xrole has been created. For details, see "Create Xrole" above.

      KMS Key Name is the identifier of the key, and you can use KMS Key Name to specify the KMS key that is to be used for encryption. You can select one of the following keys:

      • Default Master Key: After the KMS access rights have been granted to SFS, the system automatically creates a Default Master Key and names it sfs/default.
      • Customer Master Keys (CMKs): Existing or newly created CMKs. For details, see "Creating a key" in the Key Management Service User Guide.
      NOTE:

      Before you use the encryption function, the KMS access rights have to be granted to SFS. If you have the right to grant the permission, grant the KMS access rights to SFS directly. Otherwise, you need to contact the system administrator to obtain the "Security Administrator" rights first. For more operations, see File System Encryption.

    -

    Tag

    (Optional)

    When creating a file system, you can bind tags to it. Tags are used to identify file system resources, and you can classify and search for file system resources by tag.

    Tags are composed of key-value pairs.
    • Key: Mandatory if the file system is going to be tagged.

      A tag key can contain a maximum of 36 characters. It can only contain letters, digits, hyphens (-), and underscores (_).

    • Value: Mandatory if the file system is going to be tagged. It can be an empty character string. A tag value can contain a maximum of 43 characters. It can only contain letters, digits, hyphens (-), and underscores (_). For more information about tags, see the Tag Management Service User Guide.
      NOTE:
      • A maximum of 10 tags can be added to one file system.
      • The tag keys of the same file system must be unique.
      • Except for tagging the file system during disk creation, you can also add, modify, or delete tags for existing file systems.

    -

  4. Click Create Now.
  5. Confirm the file system information and click Submit.
  6. Go back to the file system list.

    If the status of the created file system is Available, the file system is created successfully. If the status is Creation Failed, contact the administrator.