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

Detaching a Disk

This section introduces how to detach unwanted disks from BMSs.

Prerequisites

The disk can be detached only when it is in the In use state.

Context

  • HyperMetro disks are detached in pairs: Once you detach a preferred disk, the corresponding non-preferred disk is automatically detached.
  • Non-preferred disks cannot be detached separately. For details about how to downgrade a preferred disk to a common disk, see Degrading a HyperMetro Disk to a Common Disk.

Precautions

Ensure that services running on the BMSs from which the disk will be detached are stopped. Otherwise, services may be interrupted and data may be lost. After the disk is detached, the BMSs cannot connect to the disk.

  • A disk can be detached when its residing DESS device is of the common I/O, high I/O, or ultra-high I/O type, and the BMSs it attaches to are Stopped or Running.
  • A disk can be detached when its residing DESS device is of the common I/O (low latency), high I/O (low latency), or ultra-high I/O (low latency) type and the BMS is Running.

Procedure

  1. Log in to the management console. For details, see Logging In to the Management Console.
  2. Click and select the wanted region.
  1. Search for a desired disk using any of the following methods:

    • Method 1: Via the disk-residing DESS device
      1. Click and choose Dedicated Cloud > Dedicated Enterprise Storage to go to the DeC management console.
      2. In the row of the desired DESS device, click the number in the Number of Disks column to go to the Disks tab page.

        The disk tab page lists the disks of the DESS device.

      3. Set the search criteria to look for the desired disk.
    • Method 2: Via the disk-residing HyperMetro resource
      1. Click and choose Dedicated Cloud > Dedicated Enterprise Storage to go to the DeC management console.
      2. On the navigation pane on the left, choose Dedicated Enterprise Storage > HyperMetro to go to the HyperMetro resource list page.

        By default, HyperMetro resources in all statuses are listed.

      3. Use any of the following methods to display the disk list:
        • Method 1
          1. Click next to the resource name to view the HyperMetro resource details.
          2. In the row of the desired DESS device, click the number in the Number of Disks column to go to the Disks tab page.

            The disk tab page lists the disks of the HyperMetro resource.

        • Method 2
          1. In the row of the wanted HyperMetro resource, click the DESS device name in the Associated DESS Devices column to go to the device details page.
          2. In the row of the desired DESS device, click the number in the Number of Disks column to go to the Disks tab page.

            The disk tab page lists the disks of the DESS device.

      4. Set the search criteria to look for the desired disk.
    • Method 3: From the disk list of all DESS devices
      1. Click and choose Storage > Dedicated Enterprise Storage Service to go to DESS Console.
      2. Set the search criteria to look for the desired disk.

  2. Detach the disk using either of the following methods:

    • Method 1
      1. In the row of the disk, choose More > Detach.

        The Detach Disk dialog box is displayed.

      2. Select the unwanted BMSs.
        • You can select one or more BMSs.
        • Ensure that services running on the BMSs from which the disk will be detached are stopped. Otherwise, services may be interrupted and data may be lost. After the disk is detached, the BMSs cannot connect to the disk.
    • Method 2
      1. Click the disk name to go to the disk details page.
      2. Click the Mounting Point tab.
      3. Select the unwanted BMSs.
        • You can select one or more BMSs.
        • Ensure that services running on the BMSs from which the disk will be detached are stopped. Otherwise, services may be interrupted and data may be lost. After the disk is detached, the BMSs cannot connect to the disk.
      4. Click Detach. The Warning dialog box is displayed.
        • If you select one BMS, click Detach in the row of the BMS or click the Mounting Point tab and then Detach.
        • If you select more than one BMS, click the Mounting Point tab and then Detach.

  3. Click OK.

    A confirmation dialog box is displayed, indicating that once a disk is detached from a BMS, the BMS cannot use the disk.

    A message is displayed indicating that the task for detaching the disk is successfully created.

Follow-Up Procedure

After detaching a disk residing on a DESS device of the common I/O (low latency), high I/O (low latency), or ultra-high I/O (low latency) type, log in to the OS of the BMS and run the hot_add command to refresh the disk list.