All Products
Search
Document Center

Simple Application Server:Scale up a data disk

Last Updated:Jun 16, 2026

As your business and application data grow, your data disk may run out of space. You can scale up the disk to increase its storage capacity.

Procedure

Step 1: Create a snapshot

Warning

Scaling up a data disk can cause data loss. Create a snapshot to back up your data before you proceed.

  1. Go to the Servers page in the Simple Application Server console.

  2. On the Servers page, find the server you want to back up and click its server ID on the server card.

  3. Click the Disks tab.

  4. In the Actions column for the data disk, click Create Snapshot.

  5. In the Create Snapshot dialog box, confirm the disk information, name the snapshot, and then click OK.

Step 2: Scale up the data disk

  1. Go to the Servers page in the Simple Application Server console.

  2. Find the server you want to update, and click its server ID.

  3. Click the Disks tab.

  4. In the upper-left corner of the page, click Scale up a data disk.

  5. In the Precautions dialog box, read the notes, and then click Data Disk Operation.

  6. Confirm the current configuration and its expiration date. Then, next to Data Disk, select a new size for the data disk.

    You can scale up a data disk to a maximum size of 16,380 GB.

    Important

    Data disks can only be scaled up, not scaled down.

  7. Review and accept the terms of service, and then click Buy Now.

    Follow the on-screen instructions to complete the payment.

  8. Remotely connect to the Simple Application Server to extend the partition and file system within the server's operating system.

    The steps vary depending on the server's operating system.

    Linux

    In this example, a data disk is scaled up from 40 GB to 60 GB.

    Note

    The default device name for a data disk on a Simple Application Server is /dev/vdb.

    1. Connect to your Linux server.

      For more information, see Connect to a Linux server.

    2. Run the following command to switch to the root user:

      sudo su root
    3. Check the disk and partition information on the server.

      1. Run the following command to view the disks on the server:

        fdisk -lu

        Scaling up a data disk does not affect the system disk. Therefore, this example shows information only for the data disk (/dev/vdb).ad The figure shows the following:

        • Area ①: The capacity of the data disk (/dev/vdb) after the scale-up.

        • Area ②: The Device column shows that the partition is named /dev/vdb1, and the System column shows that the disk uses the GUID Partition Table (GPT) partition style.

      2. Run the following command to view the partition information:

        df -Th

        The default file system type for the data disk partition (/dev/vdb1) on a Simple Application Server is ext4. The command output shows that the file system is still 40 GB (the pre-scale-up size), which means you must extend both the partition and the file system.da

    4. Extend the partition.

      1. Run the following command to install the gdisk utility.

        You must perform this step if your partition uses the GPT format. If your partition uses the Master Boot Record (MBR) format, skip this step.

        yum install gdisk -y
      2. Run the following command to install the growpart utility.

        The command varies depending on the operating system version:

        • For CentOS 7 and later, run the following command:

          yum install -y cloud-utils-growpart
        • For Debian 9 and later or Ubuntu 14 and later, run the following commands in sequence:

          Update the software sources.

          apt-get update

          Install cloud-guest-utils.

          apt-get install -y cloud-guest-utils
      3. Run the following command to extend the partition:

        Note

        Make sure to include a space between /dev/vdb and 1 in the command.

        growpart /dev/vdb 1

        The output is as follows:

        [root@iZbp1h6se7u09oqdmea**** admin]# growpart /dev/vdb 1
        CHANGED: partition=1 start=2048 old: size=83881984 end=83884032 new: size=125827038 end=125829086

        If this command fails, troubleshoot the issue manually. For more information, see Step 1: Scale up the disk capacity.

    5. Extend the file system.

      The default file system of the data disk partition (/dev/vdb1) on a Simple Application Server is ext4.

      1. Run the following command to extend the file system:

        resize2fs /dev/vdb1
      2. Run the following command to check the result:

        df -Th

        The command output shows that the file system size is now 60 GB, which indicates that the scale-up was successful.dad After the scale-up is complete, verify that your data is intact and that your applications are running correctly.

        • If the scale-up is successful and your applications are running as expected, no further action is required.

        • If the scale-up fails, use the snapshot you created to roll back the disk. For more information, see Roll back a disk by using a snapshot.

    Windows

    In this example, the server is running Windows Server 2012 R2 64-bit. The Simple Application Server's data disk (D:) is scaled up from 40 GB to 60 GB.

    1. Connect to the Windows server.

      For more information, see Connect to a Windows server.

    2. In the lower-left corner of the Windows desktop, right-click the Start icon 开始 and then click Disk Management.

      磁盘管理

    3. In the Disk Management window, click Action > Rescan Disks to detect the unallocated capacity.

      adad

      In this example, Disk 1 is the data disk.

    4. Right-click the primary partition of Disk 1 and select Extend Volume.

      add

    5. In the Extend Volume Wizard, accept the default settings to complete the volume extension.

      After the wizard finishes, the new unallocated space is automatically added to the original volume, as shown in the following figure.add

      After the scale-up, verify that your data is intact and that your applications are running correctly.

      • If the scale-up is successful and your applications are running as expected, no further action is required.

      • If the scale-up fails, use the snapshot you created to roll back the disk. For more information, see Roll back a disk by using a snapshot.