tencent cloud

Feedback

Expanding Cloud Disks

Last updated: 2022-05-16 12:11:16

    Scenarios

    A cloud disk is an expandable storage device on cloud. After a cloud disk is created, you can expand its storage capacity at any time without losing any data in it.
    After expanding the cloud disk, you need to expand the partitions and file systems. You can allocate the capacity of the expanded part to an existing partition or format it into a new partition.

    Note

    MBR partition supports disk with a maximum capacity of 2 TB. When you partition disk with a capacity greater than 2 TB, we recommend that you create and attach a new data disk and use the GPT partition format to copy data.

    Expanding Data Disks

    If the cloud disk is a data disk, you can expand it using the following three methods.

    Note

    If multiple cloud disks of the same capacity and type are attached to the CVM, you can identify them using the method shown in Distinguishing data disks. Select a data disk and expand its capacity as instructed below.

    1. Log in to the CVM console.

    2. Locate the target CVM, and select More > Resource Adjustment > Expand System Disk under the Operation column.

    3. Select the data disk to be expanded in the pop-up window, and click Next.

    4. Select a new capacity, which must be greater than or equal to the current capacity, and click Next.

    5. Read the notes and click Adjust Now.

    6. Assign its expanded capacity to an existing partition, or format it into an independent new partition. Depending on the operating system of the CVM, see Extending Partitions and File Systems (Windows) or Determining the Expansion Method.

    Expanding System Disks

    1. Log in to the CVM console. Locate the CVM on which you want to expand the system disk, and select More > Resource Adjustment > Expand System Disk under the Operation column.
    2. Select the system disk to be expanded in the pop-up window, and click Next.
    3. Select a new capacity, which must be greater than or equal to the current capacity, and click Next.
    4. Complete the capacity expansion by the following methods:
      1. Read the notes, select Agree to a forced shutdown, and click Adjust Now.
      2. After the expansion is completed on the console, check the cloudinit configuration for Linux instances or Windows instances according to the operating system of the CVM. Then expand partitions and file systems as needed.

    Operations

    Distinguishing data disks

    Check cloud disks according to the operating system of the CVM.

    1. Log in to a Linux instance.
    2. Run the following command to view the relationship between the elastic cloud disks and the device name.
      ls -l /dev/disk/by-id
      The following information will appear:

      Note that disk-xxxx is the ID of a cloud disk. You can use it to view cloud disk details on the CBS console.

    Checking the cloudinit configuration

    Check cloud disks according to the operating system of the CVM.

    After the system disk is expanded, log in to the Linux instance and check whether the /etc/cloud/cloud.cfg file contains the growpart and resizefs configuration items.

    • If yes, ignore other operations.
      • growpart: expands the partition to the disk size.
      • resizefs: expands or adjusts the file system in the / partition to the partition size.
    • If no, manually extend partitions and file systems (Linux) according to the operating system, and assign its extended capacity to an existing partition, or format it into an independent new partition.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support