• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. Creating a Linux Image
  5. Configuring the Root Partition to Automatically Expand Disk Capacity
  6. CentOS 7 and Red Hat 7

CentOS 7 and Red Hat 7

NOTE:

CentOS 7 and Red Hat 7 use the 3.10 kernel (later than 3.8), and the dracut-modules-growroot package is not required. You only need to install Cloud-Init and cloud-utils-growpart. Cloud-Init has been installed in section Installing Cloud-Init.

This section uses CentOS 7.3 as an example to describe how to install the packages. The procedure also applies to other OSs.

  1. Check whether Cloud-Init and cloud-utils-growpart are installed. If not, perform subsequent operations in this section to install them.
    [root@localhost ~]# rpm -qa | grep cloud-init
    cloud-init-0.7.5-10.el7.centos.1.x86_64
    [root@localhost ~]# rpm -qa | grep growpart
    [root@localhost ~]# 
  2. Run the following command to install cloud-utils-growpart:

    yum install cloud-utils-growpart

  3. After the installation is complete, check whether the installation is successful.
    [root@localhost ~]# rpm -qa | grep growpart
    cloud-utils-growpart-0.29-2.el7.noarch