Updated on 2022-02-21 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 your server OS does not support capacity expansion of In-use disks, detach the disk and then expand the disk capacity. Otherwise, you may need to stop the server and then start it to make the expansion takes effect.
    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

    Redhat Linux Enterprise

    7.3 64bit

    6.8 64bit

Procedure

  1. Log in to the management console.
  2. Choose Dedicated 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 choose More > 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.

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

    If the expansion fails, customer service personnel will contact you and help you handle this error. Do not perform any operations on the disk before the customer service personnel contact you. If you require that the error be handled as soon as possible, contact our customer service personnel. The disk will no longer be charged once its status changes to Expansion failed.

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

    The operation method varies depending on the server OS.