tencent cloud

Feedback

Determining the Expansion Method

Last updated: 2023-12-21 21:36:32

    Overview

    A cloud disk is an expandable storage device on cloud. After a cloud disk is created, you can expand its capacity at any time to increase its storage capacity without losing any data in it. After expanding cloud disk capacity on the console, you need to log in to the CVM instance to assign its expanded capacity to an existing partition using an appropriate method as needed. This document describes how to determine the expansion method on a Linux CVM.
    Note:
    Extending the file system may affect the existing data. We recommend you manually create a snapshot to back up your data before the operation.

    Prerequisite

    You have mounted the cloud disk to a Linux CVM and created a file system.
    You have logged in to the Linux instance that requires extending partitions and file systems.

    Directions

    1. 
    Run the following command as the root user to view the partition format of the cloud disk.
    
    fdisk -l
    If the result only shows /dev/vdb without a partition, you need to extend the file system.
    
    
    If the result is as shown in the following two figures (which may vary according to the operating system), the GPT partition format should be used.
    
    
    
    
    If the result is as shown in the following figure (which may vary according to the operating system), the MBR partition format should be used.
    
    
    2. Choose the expansion method corresponding to the partition format obtained in step 1.
    Note:
    MBR partition supports disk with a maximum capacity of 2 TB.
    When you partition a disk with a capacity greater than 2 TB, we recommend you create and mount a new data disk and use the GPT partition format to copy data.
    Partition format
    Expansion method
    Remarks
    N/A
    Applicable to scenarios where a file system is created directly on a bare device and no partition is created.
    GPT
    Applicable to scenarios of direct formatting when no partition is created.
    Applicable to scenarios where the original partitions remain unchanged and a new GPT partition is created for expansion.
    MBR
    Applicable to scenarios of direct formatting when no partition is created.
    Applicable to scenarios where the original partitions remain unchanged and a new MBR partition is created for expansion.
    
    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