If the root partition of your quickly provisioned BMS is too small, extend the root partition by referring to the following procedure.
This example uses CentOS 7.3 and system disk, /dev/sdf. The way you allocate additional space depends on the OS. This example is used for reference only. For detailed operations and differences, see the corresponding OS documentations.
In this example, the initial size of the BMS system disk (sdf) is 40 GiB and needs to be expanded to 140 GiB. The initial disk partitions are as follows:
lsblk
Information similar to the following is displayed:
The system disk (sdf) has been expanded from 40 GiB to 140 GiB. The sdf4 partition (64 MiB) is the configdriver partition that stores the BMS configuration information.
dd if=/dev/sdf4 of=/root/configdriver.img
Information similar to the following is displayed:
fdisk /dev/sdf
If partition configdriver has been deleted, information similar to the following is displayed:
If the available sectors range from 83755008 to 293601279, set 293401279 (293601279 – 200000) as the new partition's start sector and 293601279 (default value) as the end sector.
Run the partprobe command to update the partition information.
growpart /dev/sdf 3
Information similar to the following is displayed:
Run the lsblk command to view the new root partition size.
resize2fs /dev/sdf3
Information similar to the following is displayed:
dd if=/root/configdriver.img of=/dev/sdf4
Information similar to the following is displayed:
The root partition of the quickly provisioned BMS has been extended.