Updated on 2022-02-21 GMT+08:00

Attaching a Non-Shared Disk

Scenarios

Independently purchased disks are data disks. In the disk list, the function of such disks is displayed as Data disk, and the status is displayed as Available. In this case, you need to attach the data disks to servers for use.

A system disk must be purchased during a server creation and is automatically attached. In the disk list, the function of such disks is displayed as System disk, and the status is displayed as In-use. After a system disk is detached from the server, the disk function changes to Bootable disk, and the status changes to Available.

Bootable disks are the system disks detached from servers. A bootable disk can be re-attached to a server and be used as system disk or data disk depending on the device name selected.

This topic describes how to attach a non-shared DSS disk to a server. A non-shared DSS disk can be attached to one server only.

Procedure

  1. Log in to the management console.
  2. Under Storage, click Dedicated Distributed Storage Service.

    The Dedicated Distributed Storage Service details page is displayed.

  3. Choose Dedicated Distributed Storage Service > Disks.

    The disk list page is displayed.

  4. Locate the target disk in the list and click Attach in the Operation column.

    The Attach Disk dialog box is displayed.

  5. Select the server you want to attach the disk and choose a device name from the drop-down list. Ensure that the selected server and the target disk are in the same AZ.

    One device name can be attached with one disk only. For the mapping between device names displayed on the management console and those on the server, see What Is the Mapping Between Device Names and Disks? in the Elastic Cloud Server User Guide.

    Return to the disk list page. The disk status is Attaching, indicating that the disk is being attached to the server. When the disk status changes to In-use, the disk is successfully attached.

  6. Initialize the disk.

    After the disk has been attached to a server, the disk can be used only after you have initialized it. For details, see Step 4: Initialize a Data Disk.