Create, attach, detach, resize, or delete pay-as-you-go data disks.
Create a cloud disk
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.
-
Log on to the ENS console.
-
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
-
Click Create Disk.
-
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.
NoteEncryption 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://orhttps://. -
-
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.
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.
-
Log on to the ENS console.
-
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
-
On the Cloud Disks page, find the target cloud disk and click Attach in the Actions column.
-
In the Attach Instance dialog box, select the ENS instance to which you want to attach the cloud disk.
-
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.
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.
-
If a file system is mounted on the disk, unmount it from the OS first.
-
Unmount a data disk in Linux.
-
Remotely connect to the ENS instance.
-
Run the
df -hcommand to view the mount information of the data disk. -
Run the
umountcommand to unmount the file system of the data disk. -
Run the
blkidcommand to view the UUID information of the data disk partition. -
Remove the automatic mount entry for the data disk partition from the
/etc/fstabfile.NoteIf 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.
-
-
Unmount a data disk in Windows.
-
Remotely connect to the ENS instance.
-
On the Windows Server desktop, right-click the Start icon and select Disk Management.
- In the Disk Management dialog box, right-click the target disk and select Offline.
-
-
-
On the Cloud Disks page, find the target cloud disk and click Detach in the Actions column.
-
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.
-
The cloud disk must be in the Not attached state.
-
Delete all snapshots associated with the disk first.
-
Log on to the ENS console.
-
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
-
On the Cloud Disks page, find the target cloud disk and click Delete in the Actions column.
-
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.
-
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.
-
Log on to the ENS console.
-
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
-
On the Cloud Disks page, find the target disk, and in the Actions column, choose
> Resize. -
In the dialog box, set the new capacity. The value cannot be smaller than the current capacity.
-
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.