Attach a data disk

Last Updated: Aug 01, 2017

The following disk types can be attached:

  • Basic Cloud Disks
  • Ultra Cloud Disks
  • SSD Cloud Disks that serve as data disks.

Before attaching a cloud disk, an instance must meet the following requirements:

  • The instance is in Stopped status.
  • The security control marker is not Locked.
  • The instance is not in payment arrears.

To attach a cloud disk, the following conditions must be adhered to:

  • The cloud disk must be in available status.
  • A single instance can have one system and up to 16 data disks attached. This includes disks of all types.
  • A cloud disk can be attached to an instance of the same zone only.
  • A cloud disk can be attached to only one instance at a time. Attachment to multiple instances is not supported.
  • A cloud disk can be attached to any instance of the same region and zone. Both Subscription and Pay-As-You-Go instances are supported.
  • When a cloud disk is acting as the system disk of an instance, it cannot be separately attached.

You can attach a disk through either of the following:

  • Instances Menu
    Recommended if you require multiple disks to a single instance.

  • Disks Menu
    Recommended if you require disks be attached to different instances.

From the Instances menu

  1. Log on to the ECS console.

  2. Click Instances in the left navigation bar.

  3. Select your desired region.

  4. Click the name of the instance for attachment or click Manage.

  5. Click Instance Disks in the left navigation bar. The disks already attached to the instance is displayed.

  6. Click Attach Disk on the right side of the page. Select Available Devices and Target Disk to attach the disk.

  7. (Optional) Set whether disks are to be released with instances and whether snapshots are to be deleted with disks.

    • Release disk with instance
      When you release the instance, the disk will be released together.
    • Delete automatic snapshots when releasing disk
      When you release the disk, all auto snapshots will be deleted. However, the snapshot you manually created will be retained. This option is not recommended.
      1

After attaching a disk, you need to log on to the instance to format disk partitions and attach new partitions. For details, refer to Next step at the bottom of this section.

From the Disks menu

  1. Log on to the ECS console.

  2. Click Disks in the left navigation bar.

  3. Select your desired region.

  4. Find the disk to attach. The disk status must be Available.

  5. Click More > Attach. Select the target instance and release action:

    • Release disk with instance
      When you release the instance, the disk will be released together.
    • Delete automatic snapshots when releasing disk
      When you release the disk, all auto snapshots will be deleted. However, the snapshot you manually created will be retained. This option is not recommended.

After attaching a disk, you need to log on to the instance to format disk partitions and attach new partitions. For details, refer to Next step at the bottom of this section.

Next step for Linux

After attaching a disk, you must log on to the instance to format disk partitions and mount new partitions. For detailed instructions, see Format and mount a data disk.

Next step for Windows

After attaching a disk, you must log on to the instance to format disk partitions. For detailed instructions, see Format a data disk.

Thank you! We've received your feedback.