Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Identify the IDof the new flavor the VM needs:

    Code Block
    languagebash
    openstack flavor list
    • In the case of an Ephemeral VM, check the size of root disk of the original VM. Don't resize the VM if the new flavor has a disk smaller than the current one.

    • In the case of a VM with aBootable Disk, the resize will affect only VCPUs number and RAM. The bootable disk will not be changed by the operation.



  • Perform the resize, remembering to alert the user of the VM's temporary shutdown during the operation.

    Code Block
    languagebash
    openstack server resize --flavor <new_flavor_ID> --wait <vm_ID>
  • Wait then the operation to "Complete"; at the same time, on the Openstack Dashboard the message "Confirm" will appear next to the server name.  Then use the command:

    Code Block
    languagebash
    openstack server resize confirm <vm_ID>

    Issue theresize confirmation in a separate command, since the option --confirm  on the command openstack server resize  is deprecated.



  • Verify the success of the operation. Since the Dashboard can have visualization bugs, it is best to check via CLI:

    Code Block
    languagebash
    openstack server show < vm_ID > | grep flavor
  • Ask the user to confirm the success of the operation. To do that they will need to boot the VM, login, and verify the VCPUs number and Memory size are correct with the following commands:

    Code Block
    languagebash
    cat /proc/cpuinfo
    free -g

Resize of a VM's Bootable Volume

If a user owning a VM with a Bootable Volumeneeds to resize it to make it bigger (never SMALLER, in order to avoid breaking the VM), they can perform the operation themselves via Openstack Dashboard:

  • Checking there is enough free space usable on their tenant;

  • Shutting down the VM;

  • Clicking on the Bootable Volume, then on Extend Volume inside the right menu, writing there the desired new volume size;

  • Rebooting the VM and check that the volume has the correct size, using the command df -h .

Cinder Volumes


Volumes are block storage devices that you attach to instances to enable persistent storage.

...