How Do I Extend the Root Partition of a Quickly Provisioned BMS?
Scenarios
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:
Procedure
- Log in to the EVS console and expand the system disk capacity to 140 GiB.
- Log in to the BMS and run the following command to view the system disk capacity:
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.
- Run the following command to back up the configdriver partition:
dd if=/dev/sdf4 of=/root/configdriver.img
Information similar to the following is displayed:
- Run the following command and delete the configdriver partition:
fdisk /dev/sdf
- Run the partprobe command to update the partition information.
If partition configdriver has been deleted, information similar to the following is displayed:
- Recreate the configdriver partition with 100 MB.
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.
- Run the following command to extend the root partition:
growpart /dev/sdf 3
Information similar to the following is displayed:
Run the lsblk command to view the new root partition size.
- Run the following command to extend the file system of the root partition:
resize2fs /dev/sdf3
Information similar to the following is displayed:
- Run the following command to restore the content of the configdriver partition:
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.
Capacity Expansion FAQs
- Can I Reduce or Temporarily Expand the Disk Capacity?
- What Are the Differences Between Expanding Capacity by Expanding an EVS Disk and Creating a New EVS Disk?
- Will My Disk Data Be Lost After I Expand the Disk Capacity?
- Can I Use Backups or Snapshots Created Before Capacity Expansion to Restore Data on Expanded Disks?
- Do I Need to Restart the Server After Expanding the Disk Capacity?
- Do I Need to Detach an EVS Disk Before Expanding Its Capacity?
- What Should I Do If My Disk Capacity Exceeds 2 TiB After Expansion?
- How Can I Allocate Newly Added Space to a New Partition?
- How Can I Allocate Newly Added Space to an Existing Partition?
- Why Did My Disk Capacity Remain Unchanged on the Server After Capacity Expansion?
- Why Can't I Expand Capacity for My Disk?
- How Do I Extend the File System of an Unpartitioned Data Disk in Linux?
- How Do I Extend the Root Partition of a Quickly Provisioned BMS?
- How Do I View the Disk Partition Style in Linux?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore