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

Attaching an Existing Shared Disk

Scenarios

This topic describes how to attach an existing shared disk to a server and use it as data disk.

You can view the disk information in the disk list. A disk can be attached to a server and used as a data disk when all of the following conditions are met:
  • Disk Sharing: Enabled
  • Function: Data disk
  • Status: In-use or 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.

A shared disk can be attached to a maximum of 16 servers. If the target shared disk is in the In-use state, ensure that the maximum number of servers that the disk can be attached to has not been reached.

Procedure

  1. Log in to the management console.
  2. Choose Dedicated Distributed Storage Service > Disks.

    The disk list page is displayed.

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

    • Shared disks support batch attachment so that you can attach a shared disk to multiple servers at a time. The left area in the Attach Disk dialog box shows the server list. After you select the target servers, the selected servers will be displayed in the right area.
    • A shared disk can be attached only when the disk status is Available or In-use.

  4. 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. If a device name has been used, it will no longer be displayed in the drop-down list and cannot be selected.

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

    If you simply attach a shared disk to multiple servers, files cannot be shared between the servers. To share files between servers, build a shared file system or deploy a cluster management system.