Help Center> Bare Metal Server> FAQs> OS FAQ> How Do I Increase the Size of the Root Partition of a BMS Which Is Quickly Provisioned?
Updated on 2023-07-10 GMT+08:00

How Do I Increase the Size of the Root Partition of a BMS Which Is Quickly Provisioned?

Scenarios

If the root partition size of a BMS which is quickly provisioned cannot meet service requirements, you can increase the root partition size by performing the operations in this section.

Procedure

Assume that the drive letter of the BMS system disk is /dev/sdf and its initial size is 40 GB. To increase the partition size to 140 GB, perform the following operations:

  1. On the EVS console, add 100 GB capacity to the disk.

    After the capacity expansion, check that the size of system disk /dev/sdf has been increased from 40 GB to 140 GB. The 64 MB sdf4 partition is the configdriver partition that stores the BMS configuration information.

  2. Run the following command to back up the content in the configdriver partition:

    dd if=/dev/sdf4 of=/root/configdriver.img

  3. Run the fdisk /dev/sdf command and perform the operations shown in the following figure to delete the configdriver partition.

    Run the partprobe command to refresh the partitions. The system disk contains the following partitions:

  4. Create a 100 MB configdriver partition in the system disk.

    Assume that the available sector range is 83755008-293601279, the initial value of the new partition is equal to the maximum value of the available sector minus 200000, that is, 293401279. The maximum value of the new partition is 293601279.

    Run the partprobe command to refresh the partition details.

  5. Run the following command to expand the root partition:

    growpart /dev/sdf 3

    The size of the extended root partition is as follows:

    Run the resize2fs /dev/sdf3 command to expand the file system of the root partition.

  6. Run the following command to restore the configdriver partition:

    dd if=/root/configdriver.img of=/dev/sdf4

    The capacity expansion of the BMS root partition is complete.

OS FAQ FAQs

more