• 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. SUSE 11 SP4

SUSE 11 SP4

NOTE:

SUSE OSs have growpart by default. However, the growpart version of SUSE 11 SP4 is too late, and you must install growpart of an earlier version.

  1. Run the following commands to check whether Cloud-Init and cloud-utils-growpart are installed and check the version of cloud-utils-growpart.
    linux-dann:~ # rpm -qa | grep cloud-init
    cloud-init-0.7.6-32.8
    linux-dann:~ # rpm -qa | grep growpart
    growpart-0.29-7.1
  2. Download the cloud-utils-growpart package from https://software.opensuse.org//download.html?project=home%3Agarloff%3AOTC%3Acloudinit&package=growpart. Then upload it to the VM by following the instructions in section Installing Cloud-Init.
  3. Run the following command to forcibly install the cloud-utils-growpart package:

    rpm -ivh growpart-0.27-1.1.noarch.rpm  --force

    linux-dam:/home/bms/bms # rpm -ivh growpart-0.27-1.1.noarch.rpm  --force
    warning: growpart-0.27-1.1.noarch.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID de665020
    Preparing...                     ############################### [100%]
       1:growpart                    ############################### [100%]
  4. After the installation is successful, upload the original cloud-utils-growpart version.
    linux-dann:/home/bms/bms # rpm -e growpart-0.29-7.1
    linux-dann:/home/bms/bms #
  5. Delete configuration item growpart from the /etc/cloud/cloud.cfg file.

    Run the vi /etc/cloud/cloud.cfg command to delete configuration item growpart shown in the following location.

    datasource_list: [ openstack ]
    growpart:
       mode: false
    # The modules that run in the 'init' stage
    cloud_init_modules:
     - migrator
     - bootcmd
     - write-files
     - growpart