The multi-attach feature allows you to attach a single Enterprise SSD (ESSD), ESSD AutoPL disk, or Regional ESSD to multiple Elastic Compute Service (ECS) instances that support the Non-Volatile Memory Express (NVMe) protocol and reside in the same zone, to enable efficient data sharing and fast failover. The attached disk is called a shared NVMe disk.
For information about NVMe, see NVMe protocol.
Scenarios
The multi-attach feature is suitable for the following scenarios:
Billing
The multi-attach feature is free of charge. You are charged only for the underlying resources, such as cloud disks and ECS instances. For more information, see Billing overview.
Limits
The following table describes the limits on the multi-attach feature.
Resource | Limit |
Cloud disks |
|
Regions and zones | Multi-attach-capable cloud disks are available in the same regions and zones as the instance families that support the cloud disks. |
ECS instances |
|
Images | Images must contain NVMe drivers. Note
|
Procedure
Step 1: Create a multi-attach cloud disk
Go to ECS console - Block Storage.
In the top navigation bar, select the region and resource group of the resource that you want to manage.
Click Create Cloud Disk.
On the cloud disk buy page, configure the following parameters.
NoteThis step describes only the parameters required to enable multi-attach. For information about other parameters, see Create an empty data disk.
Parameter
Description
Attach
Select Not Attach.
Region and Zone
Select a region and zone that supports multi-attach.
Billing Method
Select Pay-as-you-go.
Cloud Disk
Select the cloud disk category, specify the capacity, and then select Multi-attach.

After the disk is created, verify that Supported is displayed in the Multi-attach column on the Cloud Disk tab.
Step 2: Attach the cloud disk to multiple ECS instances
Go to ECS console - Instances.
Obtain the ID of an NVMe-capable ECS instance to which you want to attach the cloud disk from the instance list.
Go to ECS console - Block Storage.
Find the disk that you want to attach and click Attach in the Actions column.
In the Attach Cloud Disk dialog box, configure the following parameters:
Destination Instance: Enter the ID of the ECS instance that you obtained.
Release Cloud Disk with Instance: Clear this option to retain the cloud disk if an associated instance is released.
NoteThis step describes only the parameters specific to multi-attach. For information about other parameters, see Attach a data disk.
Log on to the ECS instance to partition and format the cloud disk and mount file systems. For more information, see Initialize a data disk.
ImportantIf the multi-attach-enabled cloud disk attached to multiple ECS instances uses a single-node file system, the instances may fail to synchronize data, which leads to data inconsistency. Single-node file systems include ext3, ext4, XFS, and NTFS. To prevent data inconsistency, use a cluster file system suitable for your business scenarios. A cluster file system makes sure that written data, created files, and modified metadata are synchronized across all instances in real time. Typical cluster file systems include OCFS2, GFS2, Veritas Cluster File System (Veritas CFS), Oracle ASM Cluster File System (Oracle ACFS), and Oracle Database File System (DBFS).
(Optional) Repeat Step 2 to Step 5 as needed to attach the cloud disk to other NVMe-capable ECS instances.
After the cloud disk is attached to all required instances, the Status column displays In Use on the Cloud Disk tab of the Block Storage (Disks) page. Move the pointer over an instance ID or name in the Associated Instance column to view the mount information of the cloud disk on each ECS instance.
References
To modify the NVMe driver attributes of a custom image, see the Modify the attributes of an image section of the "Modify the attributes and tags of an image" topic.
If a multi-attach-enabled cloud disk is resized, the new capacity may not take effect. For more information, see Step 1: Resize a disk to extend the disk capacity.