All Products
Search
Document Center

ENS:Create and manage a disk

Last Updated:Aug 17, 2023

This topic describes how to create and manage a pay-as-you-go data disk.

Create a disk

    Note

    Disks are independent of each other and cannot be merged by formatting. Therefore, we recommend that you determine the number and capacity of disks that you need before you create them.

    We recommend that you do not use logical volume manager (LVM) to create logical volumes on multiple disks. This is because a snapshot can back up the data of only a single disk. If you create a logical volume on multiple disks by using LVM, data discrepancies may occur when you roll back these disks.

  1. Log on to the Edge Node Service (ENS) console.

  2. In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.

  3. On the Cloud Disks page, click Create Disk.

  4. On the page that appears, configure the parameters that are described in the following table.

    Parameter

    Description

    Billing Method

    The billing method of the disk. Only Pay-as-you-go is supported.

    Storage

    • Node: the edge node on which you want to create a disk. In the ENS console, you can create multiple disks that reside on different edge nodes at a time.

    • Disk Type: the disk type. Ultra disks and all-flash disks are supported.

    • Disk Capacity: the storage capacity of the disk. The minimum storage capacity is 20 GB.

    • Disks: the number of disks that you want to create on the edge node.

  5. Click Confirm.

Attach a disk

Note

Before you attach a disk, take note of the following items:

  • A disk that is created along with an ENS instance is automatically attached to the instance. The lifecycle of the disk is the same as that of the instance. You cannot detach the disk from the instance or attach the disk to another instance.

  • Up to 15 data disks can be attached to an ENS instance.

  • The instance to which you want to attach the disk and the disk must reside on the same node.

  • The instance to which you want to attach the disk is in the Running or Stopped state. The disk is in the Not attached state.

  1. Log on to the ENS console.

  2. In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.

  3. In the disk list, find the disk that you want to attach and click Attach in the Actions column.

  4. In the dialog box that appears, select the instance to which you want to attach the disk.

  5. Click OK.

Detach a disk

    Note

    The disk is attached to an instance and is in the In use state.

    To prevent data loss and ensure data integrity, we recommend that you do not read data from or write data to the disk before you detach it.

    You cannot detach a data disk from an ENS instance if the data disk is created along with the ENS instance.

  1. In the disk list, find the disk that you want to detach and click Detach in the Actions column.

  2. In the message that appears, click OK.

    After you perform the preceding steps, find the disk in the disk list. If the state of the disk changes to Not attached, the disk is detached from the instance.

Delete a disk

    Note

    If the disk that you want to delete stores valid data, we recommend that you create a snapshot for the disk to prevent data loss.

    The disk that you want to delete is in the Not attached state.

  1. In the disk list, find the disk that you want to delete and click Delete in the Actions column.

  2. In the message that appears, click OK.