Updated on 2022-02-21 GMT+08:00

Step 2: Create a Disk

Scenarios

DSS storage capabilities are implemented through DSS disks. You need to create disks to make use of the storage resources you requested.

This topic describes how to create a disk in a DSS storage pool.

Precautions

When disks are created in a storage pool, the type of DSS disks will be the same as that of the storage pool.

Procedure

  1. Log in to the management console.
  2. Choose Storage > Dedicated Distributed Storage Service to switch to the Dedicated Distributed Storage Service page.
  3. Choose Dedicated Distributed Storage Service > Disks.

    The disk list page is displayed.

  4. On the displayed page, click Create Disk, or in the storage pool list, locate the storage pool in which the disk will be created and click Create Disk in the Operation column.
  5. Configure basic information about the disk by referring to Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Example Value

    Region

    Specifies the region where the tenant belongs.

    -

    AZ

    Specifies the AZ to which the disk belongs.

    NOTE:

    The disk, storage pool, and the server where the disk is attached must be in the same AZ.

    Once a disk has been created, you cannot change the AZ of the disk.

    az1.dc1

    Storage Pool

    Select a storage pool from the drop-down list.

    -

    Capacity (GB)

    The disk capacity must be as follows:

    10 GB to 32768 GB

    NOTE:
    • If you create a disk from a backup, the disk capacity must be greater than or equal to the backup size. In the condition that you do not specify the disk capacity, if the backup size is smaller than 10 GB, the default capacity 10 GB will be used as the disk capacity; if the backup size is greater than 10 GB, the disk capacity will be consistent with the backup size.
    • The system shows the remaining disk quotas.

    -

    Select Data Source

    Optional

    You can create a new disk or create a disk from a data source.

    • If you do not specify any data source, the disks you created are brand new and contain no data.
    • If you specify a backup, the disk will be created from the backup data.

      Click Select Data Source and choose Create from backup. On the displayed page, select the target backup and click OK.

    • If you specify an image, the disk will be created from the image data.

      Click Select Data Source and choose Create from image. On the displayed page, select the target image and click OK.

    -

    Auto Backup

    Optional

    Auto backup is a function provided by CBR. If auto backup is enabled, the system automatically creates backups for the disk data at specified points in time and deletes outdated backups according to the configured backup policy.

    When Enable is selected, a backup policy must be configured. You can either use the default backup policy or customize the policy based on your service requirements.

    -

    Advanced Settings

    Optional

    • If you select Not required, the advanced disk functions are not used.
    • If you select Configure, the following advanced disk functions will be displayed:
      • Share
      • SCSI
      • Encryption

    -

    Share

    Optional

    • If Share is not selected, a non-shared disk is created.
    • If Share is selected, a shared disk is created and can be attached to multiple servers.

    -

    SCSI

    Optional

    • If SCSI is not selected, a VBD disk is created. VBD is the default device type of disks.
    • If SCSI is not selected, a SCSI disk is created. Such disks allow the server OS to directly access the underlying storage media and send SCSI commands to the disks.
    • If SCSI and Share are both selected, a shared SCSI disk is created.

    -

    Encryption

    Optional

    Disk encryption is used for data disk encryption only. The system disk encryption depends on images. For details, see the Image Management Service User Guide.

    When Encryption is selected, the following parameters will be displayed.

    • Create Agency

      An agency is a trust relationship between two tenants or services. A tenant can create an agency to grant resource access rights to another tenant or service. If the KMS access rights are not granted to EVS, the Create Agency dialog box will be displayed. Otherwise, it will not be displayed.

      Click OK to grant the KMS access rights to EVS. After the rights have been granted, EVS can obtain KMS keys to encrypt or decrypt disks.

      After the KMS access rights have been granted, follow-up operations do not require the rights to be granted again.

    • KMS Key Name
      NOTE:

      KMS Key Name is displayed only after the KMS access rights have been granted. For details, see Create Agency 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. One of the following keys can be used:
      • Default Master Key: After the KMS access rights have been granted to EVS, the system automatically creates a Default Master Key and names it evs/default.
      • CMKs: Existing or newly created CMKs. For details, see Key Management Service > Creating a CMK in the Data Encryption Workshop User Guide.
      NOTE:

      Before you use the disk encryption function, the KMS access rights need to be granted to EVS. If you have the right granting permission, grant KMS access rights directly. If you do not have this permission, contact a user with the security administrator rights to grant the KMS access rights to EVS, then repeat the preceding operations.

    -

    Disk Name

    • If you create one disk, this value is used as the disk name and can contain a maximum of 64 bytes.
    • If you create disks in a batch, this value is used as the prefix of disk names, and one disk name will be composed of this parameter value and a four-digit number. The value can contain a maximum of 64 bytes.
      NOTE:

      The name can contain only letters, digits, underscores (_), and hyphens (-).

    For example, if you create two disks and set volume for Disk Name, the disk names will be volume-0001 and volume-0002.

    Quantity

    The default value is set to 1, which means one disk will be created. Currently, you can create up to 100 disks at a time.

    NOTE:
    • When you create a disk from a backup, batch creation is not possible, and this parameter value must be set to 1.
    • When you create a disk from an image, batch creation is not possible, and this parameter value must be set to 1.
    • The system shows you the maximum number of disks as well as the maximum disk capacity allowed to create. To ensure effective resource usage, if the number of disks you need exceeds the upper limit, click Increase Quota to obtain a higher quota. You can create the disks you need after the request is approved.

    1

  6. Click Next.
  7. In the disk list, view the disk status.

    When the disk status changes to Available, the disk is successfully created.