Resizing Virtual Machine Instance in Platform9 Managed OpenStack

You can resize a running virtual machine instance to modify the compute power, memory or disk size, by assigning a different flavor to the instance.

Resize Workflow

The workflow to resize an instance is as follows.

  1. Resize the instance with the following command.
    openstack server resize --flavor <new-flavor-id> <server-uuid> 

  2. When the resize is complete, the instance status becomes VERIFY_RESIZE.
  3.  After verifying that the instance has been resized as expected, run the following command to confirm this operation.
    openstack server resize --confirm <server-uuid>

    This sets the instance status to ACTIVE again.
    If the resize fails or does not work as expected, you can revert the resize with the following command.

    openstack server resize --revert <server-uuid> 

  4. The instance status becomes ACTIVE, irrespective of whether you accept the resize or revert the resize.

Instance resizing can be done in one of the following ways.

Points to remember

Following are the points to remember while resizing an instance.

Resize Instance to Same Host

Resizing an instance to the same host can be achieved with the following steps.

  1. Create a host aggregate containing only the hypervisor host that you want to use to resize the instance. Add aggregate metadata to it.
  2. Assign this aggregate metadata to the new flavor you are going to create for resizing.
  3. Resize the instance using the following command.
    openstack server resize --flavor <new-flavor-uuid> <server-uuid>

Once the resize step has completed successfully,  run the following command to make sure that the instance status has changed to 'VERIFY_RESIZE'.

openstack server show <instance-uuid> 

Run the following command, to confirm this operation.

 openstack server resize --confirm <instance-uuid>

The above command sets the instance status to ACTIVE again.

Resize to Different Host

During the resize process, the node where the instance is currently running,  uses SSH to connect to the new node where the resized instance would live, and copies the instance and associated files to the new node.

To allow resizing to a different host, OpenStack requires password-less login to be set up between the current host and new host.

If you want to set up password-less authentication to resize an instance to a different host, contact Platform9 support.


October 21, 2016