Step 2: Attaching Cloud Disks

Last Updated At: 2025-10-21 09:10:00

This document will take an example of attaching an empty elastic cloud disk cbs-test to a CVM in the City1 region to help you quickly understand how to attach a cloud disk. For more information about attaching cloud disks, please see Attaching Cloud Disks.

Note:

Cloud disks can only be attached to the CVM in the same availability zone.

Prerequisites

  • Successfully created the cbs-test cloud disk.
  • Make sure that you have an available CVM in the region and availability zone where you created the cloud disk (City1 in this example). For information on how to purchase and start a CVM, please see Create an Instance.

Connecting to a CVM Instance

  1. Log in to the CBS console.

  2. On the Cloud Block Storage page, locate the cbs-test cloud disk, and select More > Attach.

  3. In the pop-up window, select a CVM instance to which the cloud disk will be attached, and click OK.

    Note:

    You can check Release on Instance Termination according to the actual situation.

    Return to the CBS list page, and at this time, the cloud disk status will be Mounting, indicating that cloud disk is in the process of being attached to the CVM. When the CBS status is In use, it indicates that the attachment to the CVM was successful.

Subsequent Operations

After the cloud disk is attached, it is used as the data disk of the CVM and is offline by default. You need to perform initialization operations such as formatting, partitioning, and creating a file system on the data disk. For specific operations, please see Initializing Cloud Disks.