Help Center/ Elastic Volume Service/ User Guide/ Disk Capacity Expansion/ Expanding Capacity for an In-use EVS Disk
Updated on 2022-12-20 GMT+08:00

Expanding Capacity for an In-use EVS Disk

Scenarios

This section describes how to expand the capacity of an In-use EVS disk on the management console. The In-use status indicates that the disk has been attached to a server. You do not need to detach the disk when expanding an In-use disk.

Constraints

  • Currently, disk capacities can only be expanded, but cannot be reduced.
  • When expanding an In-use disk, the server containing this disk must be in the Running or Stopped state.
  • A shared disk cannot be expanded in the In-use state. To expand a shared In-use disk, you must detach it from all its servers, wait until its status changes to Available, and then expand its capacity. For more information, see Expanding Capacity for an Available EVS Disk.
  • Only some server OSs support capacity expansion of In-use disks. 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.

    Perform the following operations to check whether your server OS supports capacity expansion of In-use disks:

    1. Both public images and private images listed on the console support the capacity expansion of In-use disks.

      How to view: Log in to the management console. In the navigation pane on the left, click and choose Compute > Image Management Service. On the Public Images tab, view the images of the ECS image type.

    2. If your server OS does not appear in the image list, check whether it is included in Table 1.

      If your server OS appears in Table 1, the OS supports capacity expansion of In-use disks. Otherwise, you must detach the disk and then expand its capacity. For details, see Expanding Capacity for an Available EVS Disk.

    Table 1 OSs that support the capacity expansion of In-use disks

    OS

    Version

    CentOS 8

    8.0 64-bit or later

    CentOS 7

    7.2 64-bit or later

    CentOS 6

    6.5 64-bit or later

    Debian

    8.5.0 64-bit or later

    Fedora

    24 64-bit or later

    SUSE 12

    SUSE Linux Enterprise Server 12 64-bit or later

    SUSE 11

    SUSE Linux Enterprise Server 11 SP4 64-bit

    OpenSUSE

    42.1 64-bit or later

    Oracle Linux Server release 7

    7.2 64-bit or later

    Oracle Linux Server release 6

    6.7 64-bit or later

    Ubuntu Server

    14.04 64-bit or later

    Windows Server 2016

    Windows Server 2016 R2 Enterprise 64-bit

    Windows Server 2012

    Windows Server 2012 R2 Standard 64-bit

    Windows Server 2008

    Windows Server 2008 R2 Enterprise 64-bit

    Red Hat Enterprise Linux 7

    7.3 64-bit

    Red Hat Enterprise Linux 6

    6.8 64-bit

    EulerOS

    2.2 64-bit or later

Procedure

  1. Log in to the management console.
  2. Under Storage, click Elastic Volume Service.

    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 Servers 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 (GiB) parameter and click Next.
  5. On the Details page, check the disk details.

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

    After the specifications are submitted, go back to the disk list page.

  6. In the displayed dialog box, click OK.
  7. In the disk list, view the capacity of the target disk.

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

  8. After the disk has been expanded on the management console, only the disk storage capacity is enlarged, but its additional space cannot be used directly. You must log in to the server and extend the disk partition and file system.

    The operation method varies depending on the server OS.