Increasing the size of a XEN-PV disk

Below is a quick solution to increase the size of a XEN-PV disk that works fine on all our nodes (paths and names may vary depending on your control panel setup, here Solus is being assumed):

  1. shut down the VM
  2. lvextend /dev/VOLUMEGROUP/vmID.img -L +[INTEGER]G
  3. e2fsck -f /dev/VOLUMEGROUP/vmID_img
  4. resize2fs /dev/VOLUMEGROUP/vmID_img
  5. boot the VM
This should work for any standard xen-pv template (we use the ones from Stacklet).