Updated on 2023-08-04 GMT+08:00

Expanding an In-use Disk

Scenarios

Currently, disk capacities can be expanded, but cannot be reduced.

Expanding an In-use disk means that the to-be-expanded disk has been attached to a server.

  • During such an expansion, the server containing the to-be-expanded disk must be in the Running or Stopped state.
  • Shared disks must be expanded when they are in the Available state. For details, see Expanding an Available Disk.
  • Currently, only some server OSs support the expansion of In-use disks. Therefore, ensure that your server OS meets the requirements for expanding In-use disks before operation. Table 1 lists the server OSs, including the OS images listed on the Public Images page of the IMS console and others, that support In-use disk expansion.
    If the server OS does not support capacity expansion of In-use disks, detach the disk and then expand its capacity. Otherwise, you may need to stop and then start the server after the expansion to make the additional space available.
    Table 1 Supported OSs

    OS

    Version

    CentOS

    7.4 64bit

    7.3 64bit

    7.2 64bit

    6.8 64bit

    6.7 64bit

    6.5 64bit

    Debian

    8.6.0 64bit

    8.5.0 64bit

    Fedora

    25 64bit

    24 64bit

    SUSE

    SUSE Linux Enterprise Server 12 SP2 64bit

    SUSE Linux Enterprise Server 12 SP1 64bit

    SUSE Linux Enterprise Server 11 SP4 64bit

    SUSE Linux Enterprise Server 12 64bit

    OpenSUSE

    42.2 64bit

    42.1 64bit

    Oracle Linux Server release

    7.3 64bit

    7.2 64bit

    6.8 64bit

    6.7 64bit

    Ubuntu Server

    16.04 64bit

    14.04 64bit

    14.04.4 64bit

    Windows

    Windows Server 2008 R2 Enterprise 64bit

    Windows Server 2012 R2 Standard 64bit

    Windows Server 2016 Standard 64bit

    Red Hat Enterprise Linux

    7.3 64bit

    6.8 64bit

Procedure

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

    The disk list page is displayed.

  3. Determine whether to view the server information before expanding the disk.

    • If you need to view the server information, perform the following procedure:
      1. In the disk list, click the name of the to-be-expanded disk.

        The disk details page is displayed.

      2. Click the Attachments tab to view the server where the target disk has been attached.
      3. Click Expand Capacity in the upper right corner of the page.

        The expansion page is displayed.

    • If you do not need to view the server information, perform the following procedure:
      1. In the disk list, locate the row that contains the target disk and click Expand Capacity in the Operation column.

        The expansion page is displayed.

  4. Set the Add Capacity (GB) parameter as prompted and click Next.
  5. On the Details page, check the disk information again.

    • If you do not need to modify the specifications, click Submit to start the expansion.
    • If you need to modify the specifications, click Previous to modify parameters.

    After the specifications are submitted, the disk list page is displayed.

  6. In the disk list, view the capacity of the expanded disk.

    After the disk status changes from Expanding to In-use, the additional capacity has been added to the disk and the expansion succeeded.

    If the disk status is Expanding, you are not allowed to modify the specifications of the ECS where the disk is attached.

  7. After the capacity expansion has succeeded, perform subsequent operations for the additional space.

    The operation method varies depending on the server OS.