Help Center> Bare Metal Server> User Guide> Disk> Attaching Data Disks

Attaching Data Disks

Scenarios

If the existing disks of a BMS fail to meet service requirements, for example, due to insufficient disk space or poor disk performance, you can attach more available disks to the BMS, or create more disks and attach them to the BMS.

Constraints

  • The disk and the target BMS must be located in the same AZ.
  • The BMS must be in Running or Stopped state.
  • Device Type of the EVS disk must be SCSI.
  • A non-shared EVS disk must be in Available state.

    A shared EVS disk must be in In-use or Available state.

  • BMSs using some flavors or images cannot have EVS disks attached because the servers do not have SDI iNICs or for other reasons.

Prerequisites

Disks are available.

For details about how to create disks, see Purchasing an EVS Disk in Elastic Volume Service Quick Start.

If DSS is used, see Dedicated Distributed Storage Service Getting Started.

If DESS is used, see Dedicated Enterprise Storage Service User Guide for how to create disks.

Procedure

  1. Log in to the management console.
  2. Under Computing, click Bare Metal Server.

    The BMS console is displayed.

  3. In the upper right corner of the BMS list, enter the name, private IP address, ID, or flavor of a BMS and click to search for the desired BMS.
  4. Click the name of the target BMS.

    The page showing details of the BMS is displayed.

  5. Click the Disks tab. Then, click Attach Disk.

    The Attach Disk dialog box is displayed.

  6. Select the disk type and target disk, and set the mount point as prompted.

    If DESS is used, you need to select the disk device.

    Figure 1 Attaching a disk

    If no EVS disks are available, click Create Disk in the lower part of the list.

  7. Click OK.

    After the disk is attached, you can view the information about it on the Disks tab.

Follow-up Operations

  1. If the attached disk is newly created, the disk can be used only after it is initialized (formatted). For details about how to initialize data disks, see Initializing Data Disks.
  2. If the target BMS uses a flavor whose name contains suffix hba and DESS is selected in step 6, log in to the BMS and run the hot_add command to scan for the disk after it is attached to the BMS.
    Figure 2 Scanning for the newly mapped LUN

After the BMS is restarted, the drive letter of the EVS disk may change. For the mapping between the EVS disk device and drive letter, see How Do I Obtain the Drive Letter of an EVS Disk?