Read more

Openstack: nova resize

Claus-Theodor Riegg
July 31, 2015Software engineer at makandra GmbH

To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You can't change for e.g. just the RAM size with a parameter, you have to assign a new/other flavor. If there is no suitable flavor for the new properties of the VM, create a new one.

Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

nova resize [--poll] <server> <flavor>

The resize could take a while, after it is finished, the VM boots up with the new specifications. SSH into the VM and check if everything is alright. If so -> use nova resize-confirm <server> to get rid of the old VM image and keep the new one. If you run into any trouble you can use nova-resize-revert <server> to drop the new VM image and use the old one.

Please mind the following:

  • openstack will shutdown the VM before the resize, so you have to acknowledge a downtime
  • be careful if you resize a vdisk to a smaller value, as there is the risk of losing data
  • as openstack recreates the image with qemu-img convert, a resize can take a long time (depending on the size of the disk)
Posted by Claus-Theodor Riegg to makandra dev (2015-07-31 10:33)