Extending a partition on a Cloudforms appliance

cyburdine/ December 1, 2016/ Cloud Automation

If you are needing more space on your Cloudforms Appliance, below is a quick cheatsheet.

  • In your hypervisor, extend the virtual disk that the Cloudforms Appliance uses.
  • Inside the Cloudforms Appliance console run the following commands
    fdisk /dev/sda
    create a new partition (n)
    change the partition type to be Linux LVM (t 8e)
    write changes (w)
    pvcreate /dev/sdaX
    vgextend VG-CFME /dev/sdaX
    lvextend -L +20G /dev/mapper/VG--CFME-lv_var
    this command extends the LV of lv_var by 20 Gigabytes
    xfs_growfs /dev/mapper/VG--CFME-lv_var
    this extends the filesystem of lv_var
    

As time permits, I’ll expand on this post