All Products
Search
Document Center

ENS:Create and manage cloud disks

Last Updated:Jun 02, 2026

Create, attach, detach, resize, or delete pay-as-you-go data disks.

Create a cloud disk

    Note

    Cloud disks cannot be merged. Plan the number and capacity in advance.

    Avoid creating an LVM logical volume across multiple cloud disks. Snapshots back up only a single disk, so rolling back one disk in an LVM volume can cause data inconsistencies.

  1. Log on to the ENS console.

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

  3. Click Create Disk.

  4. Configure the following parameters on the purchase page.

    Parameter

    Description

    Billing Method

    Only pay-as-you-go is supported.

    name

    2 to 128 characters. Must start with an uppercase or lowercase letter or a Chinese character. Can contain digits, periods (.), underscores (_), colons (:), and hyphens (-).

    Storage

    • Node: Select the edge node for the cloud disk. You can select up to 10 edge nodes at a time.

    • Disk Type: Ultra disk or all-flash disk.

    • Disk Capacity: Valid values: 20 to 32,768 GiB.

    • Create with Snapshot: Select a snapshot. The new disk contains the same data as the source disk at the snapshot time.

    • Number of Disks: Number of cloud disks to create. Maximum: 100 per operation.

    • Encryption: Automatically encrypts data stored on the cloud disk.

    Note

    Encryption requires Key Management Service (KMS).

    Tag

    • Tag Key: Select or enter a tag key. Supports prefix-based fuzzy search. Maximum: 20 tags per resource.

    • Tag Value: Select or enter a tag value. Can be empty.

    Description

    The description must be 2 to 256 characters in length and cannot start with http:// or https://.

  5. Click Confirm Order. The new cloud disk appears on the Cloud Disks page.

Attach a cloud disk

Attach a cloud disk to an ENS instance in the same edge node as a data disk to expand the ENS instance storage. Attaching a disk that contains data, such as one created from a snapshot, does not cause data loss.

Note

Before attaching a cloud disk:

  • A cloud disk created with an instance is automatically attached to it. Its lifecycle is tied to the instance, and it cannot be detached or reattached.

  • Maximum of 15 data disks per instance.

  • The instance and cloud disk must be in the same edge node.

  • The instance must be in the Running or Stopped state. The cloud disk must be in the Not attached state.

After attaching a cloud disk, initialize it:

  • For a new disk without a partition or file system, create a partition and mount a file system. Initialize a disk.

  • For a disk created from a snapshot or detached from another instance without a mounted file system, mount the file system. This does not cause data loss.

  1. Log on to the ENS console.

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

  3. On the Cloud Disks page, find the target cloud disk and click Attach in the Actions column.

  4. In the Attach Instance dialog box, select the ENS instance to which you want to attach the cloud disk.

  5. Click OK.

Detach a cloud disk

To remove a data disk or move it to another ENS instance in the same edge node, detach it first.

Note

Before detaching a cloud disk:

  • The cloud disk status must be In use.

  • Suspend all read and write operations on the disk to ensure data integrity.

  • Disks created with the instance cannot be detached.

  1. If a file system is mounted on the disk, unmount it from the OS first.

    1. Unmount a data disk in Linux.

      1. Remotely connect to the ENS instance.

      2. Run the df -h command to view the mount information of the data disk.

      3. Run the umount command to unmount the file system of the data disk.

      4. Run the blkid command to view the UUID information of the data disk partition.

      5. Remove the automatic mount entry for the data disk partition from the /etc/fstab file.

        Note

        If you do not remove the automatic mount entry from /etc/fstab, the instance may fail to start after you detach the disk and restart it.

    2. Unmount a data disk in Windows.

      1. Remotely connect to the ENS instance.

      2. On the Windows Server desktop, right-click the Start icon and select Disk Management.

      3. In the Disk Management dialog box, right-click the target disk and select Offline.
  2. On the Cloud Disks page, find the target cloud disk and click Detach in the Actions column.

  3. In the dialog box, click OK.

    The disk status changes to Not attached after successful detachment.

Delete a cloud disk

Deleting a cloud disk permanently removes the disk and all its data.

Note
  • The cloud disk must be in the Not attached state.

  • Delete all snapshots associated with the disk first.

  1. Log on to the ENS console.

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

  3. On the Cloud Disks page, find the target cloud disk and click Delete in the Actions column.

  4. In the dialog box, click OK.

Resize a cloud disk

If a separately created cloud disk runs out of space, resize it in the ENS console to increase capacity.

Note
  • You cannot resize a system disk.

  • You can resize a cloud disk only when it is in the In use or Not attached state.

  • You cannot resize a data disk or a local disk that was created with an instance.

  • Do not resize a cloud disk during snapshot creation. Wait until the snapshot completes.

  1. Log on to the ENS console.

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

  3. On the Cloud Disks page, find the target disk, and in the Actions column, choose MoreResize.

  4. In the dialog box, set the new capacity. The value cannot be smaller than the current capacity.

  5. Resize the partition and file system.

    Resizing a cloud disk in the console does not resize its partition or file system. Log in to the ENS instance and resize the partition and file system to make the additional capacity available.