Resize a Public Cloud instance using the OpenStack CLI
Objective
As a result of increased activity, or simply to address new needs, your instance may not be able to meet this new burden due to a lack of resources. However, with OVHcloud Public Cloud, you can increase the resources available to your instance with just a few steps.
This guide will show you how to resize your Public Cloud instance using the OpenStack CLI.
Limitations:
- Only upscaling is possible for classic models.
- Metal instances can only be resized to and from other Metal flavors.
- Flex instances allow resizing to higher or lower models due to a locked single disk size.
Requirements
- A Public Cloud instance in your OVHcloud account
- An OpenStack user account
- An OpenStack CLI ready environment
- Set OpenStack environment variables
Instructions
This manipulation causes the instance to be shut down for the time of the operation.
Performing a backup
When performing a resize, the instance is shut down for the time of the operation. We therefore recommend that you back up your instance and stop all running processes before proceeding. For more information on how to backup your instance, read the following guide.
Listing servers
The first step is to list your servers in order to retrieve the name of the instance you wish to resize. In our example, we want to resize the instance named "OVHcloudinstance".
Listing flavors
Next, you need to display the list of flavors available in your region in order to retrieve the ID of the new flavor. In our example, we want to resize our instance to a b2-30 model with ID "098889e6-d1fc-4967-baea-19fd97fd83a8".
Please note that you cannot switch OS models when resizing an instance. A resizing can only be done from a Linux model to another Linux model or from a Windows model to another Windows model.
Resizing an instance
Once you have retrieved the necessary information, you can now resize your instance:
To resize our "OVHcloudinstance":
You can follow the process by running the following command frequently. The status should appear as RESIZE.
Scaling down an instance
This option is only available for Flex models.
In case you wish to scale down your instance, you can do this by performing the same steps mentioned above and use a different ID in the field.
Go further
Resize a Public Cloud instance via the OVHcloud Control Panel
Resize a Public Cloud instance via Horizon
Join our community of users.