As workloads grow on edge nodes, you may need additional storage beyond what was provisioned with your instances. Edge Node Service (ENS) provides pay-as-you-go data disks that you can create, attach, detach, resize, and delete as needed.
ENS supports two disk types: ultra disks and all-flash disks. Each disk belongs to a specific edge node and can only be attached to instances on the same node.
Limits
| Item | Limit |
|---|---|
| Billing method | Pay-as-you-go only |
| Disk types | Ultra disk, all-flash disk |
| Disk capacity | 20 GiB to 32,768 GiB |
| Maximum disks per batch | 100 |
| Maximum data disks per instance | 15 |
| System disk resize | Not supported |
| Resize data disks or local disks created with instances | Not supported |
| Resize during snapshot creation | Not supported |
| Cross-node attachment | Not supported. Instance and disk must be on the same edge node |
Do not use Logical Volume Manager (LVM) to create logical volumes across multiple disks. Snapshots back up data on a single disk only. If you create a logical volume across multiple disks with LVM, data discrepancies may occur when you roll back these disks.
Cloud disks are independent of each other and cannot be merged by formatting. Plan the number and capacity of disks before you create them.
Create a disk
Procedure
Log on to the ENS console.
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
On the Cloud Disks page, click Create Disk.
Configure the following parameters.
Parameter Description Billing Method Only Pay-as-you-go is supported. Name 2 to 128 characters. Can contain letters, digits, periods ( .), underscores (_), colons (:), and hyphens (-). Must start with a letter.Storage Node: the edge node where the disk is created. You can create disks on multiple edge nodes in a single operation. Disk Type: ultra disk or all-flash disk. Disk Capacity: 20 GiB to 32,768 GiB. Create with Snapshot: select a snapshot to create a disk with the same data as the original disk at the time the snapshot was taken. Disks: the number of disks to create on this edge node. You can create up to 100 disks at a time. Encryption: encrypt data on the disk automatically. Encryption uses KMS. Tag Tag Key: select an existing tag key or enter a new one. Fuzzy match is supported. A maximum of 20 tag keys can be specified at a time. Tag Value: select an existing tag value or enter a new one. This field can be left blank. Description 2 to 256 characters. Cannot start with http://orhttps://.Click Confirm.
Verify the result
On the Cloud Disks page, confirm that the new disks appear in the disk list with the Not attached state.
Attach a disk
Attach a data disk to an ENS instance on the same edge node to add storage capacity. Attaching a disk that contains data, such as a disk created from a snapshot, does not cause data loss.
A disk created along with an ENS instance is automatically attached to that instance. Its lifecycle is tied to the instance -- you cannot detach it or attach it to another instance.
Prerequisites
Before you begin, make sure that:
The instance is in the Running or Stopped state
The disk is in the Not attached state
The instance and the disk are on the same edge node
Procedure
Log on to the ENS console.
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
Find the target disk and click Attach in the Actions column.
In the dialog box, select the ENS instance to attach the disk to.
Click OK.
Initialize the disk after attachment
After attaching a disk, initialize it before use:
New empty disk: partition the disk and create file systems. For detailed steps, see Initialize a disk.
Disk from a snapshot or previously detached disk: mount the existing file systems only.
Detach a disk
Detach a data disk from an ENS instance when it is no longer needed on that instance. A disk must be detached before it can be attached to a different instance on the same edge node.
Stop reading from and writing to the disk before detaching it to prevent data loss.
Prerequisites
Before you begin, make sure that:
The disk is in the In use state
The disk was not created along with the ENS instance (instance-bundled disks cannot be detached)
Step 1: Unmount file systems at the OS level
If file systems are mounted on the disk partitions, unmount them from within the instance operating system before detaching the disk in the console.
Linux
Connect to the ENS instance.
Run the following command to check which file systems are mounted on the disk:
df -hUnmount each file system on the disk:
umount <mount-point>Identify the UUID of each disk partition:
blkidOpen
/etc/fstaband remove the auto-mount entries for the disk partitions that match the UUIDs from the previous step.WarningIf you skip removing the auto-mount entries from
/etc/fstab, the instance will fail to restart after you detach the disk in the console.
Windows
Connect to the ENS instance.
Right-click the Start icon and select Disk Management.
Right-click the target disk and select Offline.
Step 2: Detach the disk in the console
On the Cloud Disks page, find the target disk and click Detach in the Actions column.
In the confirmation dialog, click OK.
Verify the result
On the Cloud Disks page, confirm that the disk state changes to Not attached.
Delete a disk
Delete a disk when it is no longer needed. After you delete a disk, the data stored on the disk is deleted.
Back up any data you need before deleting a disk.
Prerequisites
Before you begin, make sure that:
The disk is in the Not attached state
All snapshots associated with the disk have been deleted
Procedure
Log on to the ENS console.
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
Find the target disk and click Delete in the Actions column.
In the confirmation dialog, click OK.
Resize a disk
Increase the capacity of a data disk when existing storage is insufficient. Resizing a disk is a two-step process: first extend the capacity in the console, then extend the partitions and file systems at the OS level.
Disks in both the In use and Not attached states can be resized.
Step 1: Extend the capacity in the console
Log on to the ENS console.
In the left-side navigation pane, choose Storage and Snapshots > Cloud Disks.
Find the target disk, click the more icon (
) in the Actions column, and select Resize.In the dialog box, set the new capacity. The new value must be greater than the current capacity.
Step 2: Extend partitions and file systems
After resizing a disk in the console, the partitions and file systems on the disk are not automatically extended. Manually extend them to make the additional space available.