Learn how to change a Block Storage volume type via the OVHcloud Control Panel, Horizon Interface, or OpenStack CLI.
The Block Storage volumes can be upgraded or downgraded; for example, changed from Classic to High-speed-gen-2 and back again.
Volume retyping is not available for encrypted volumes. To learn how to migrate a Block Storage volume to an encrypted LUKS volume, see our Migrating a Block Storage volume to an encrypted LUKS volume guide.
To learn more about our Block Storage volume types, see this guide.
Requirements
- Access to the Horizon Interface
- A Block Storage volume created in your Public Cloud project
OVHcloud Control Panel Access
- Direct link: Public Cloud Projects
-
Navigation path:
Public Cloud> Select your project
Instructions
NOTE: All snapshots and instances connected to the Block Storage volume must be deleted/detached before proceeding. For more information, see the Detach a volume section of the guide "Creating and configuring an additional disk on an instance".
Changing the volume type (retyping) via the OVHcloud Control Panel or the OVHcloud API is available only for unencrypted volumes. Encrypted volumes of type -LUKS cannot be retyped.
Conversions from -LUKS to non -LUKS (or vice versa) are not supported, including via OpenStack / Horizon.
Access your Block Storage volumes
Via the OVHcloud Control Panel
Click on Block Storage in the left-hand menu under Storage.
Via the Horizon Interface
Log in to the Horizon interface and make sure you are in the correct region. You can verify this in the top left corner.
Next, open the Volumes menu on the left side and click on Volumes.
Via the OpenStack CLI
Make sure to consult the following guide before proceeding: Preparing an environment for using the OpenStack API.
Find the volume ID of the Block Storage volume you wish to retype. With this command, you will also be able to see the volumes' current type.
Change your Block Storage volume type
Via the OVHcloud Control Panel
Click the more options ... button to the right of your volume and choose Change the volume type.
A panel will appear on the right-hand edge of the page. Select a new type for your volume and click Edit.
Via the Horizon Interface
When trying to change a block storage volume type, the migration policy will need to be changed to On-demand.
The migration policy is set to Never by default, as the volume stays on the same CEPH cluster. However, for retyping, the volume will need to be migrated to a new cluster.
Find the row for your volume in the table, click on the drop-down arrow next to Edit Volume, and select Change Volume Type.
In the pop-up window:
- For Type, select a new volume type.
- For Migration Policy, select
On Demand.
Once done, click on Change Volume Type to confirm the change.
Via the OpenStack CLI
List available volume types:
First, list the types of volumes available in your region with the following command:
NOTE: Please note that if "high-speed-gen2" does not appear in the list, it means that it is not available in this region.
Switch volume types with the following command:
When trying to change a block storage volume type, the migration policy will need to be changed to On-demand.
The migration policy is set by default to Never, as the volume stays on the same CEPH cluster. However, for retyping, the volume will need to be migrated to a new cluster.
Verify the retyping
NOTE: The larger your volume, the longer it may take for the retyping process to complete.
From the OVHcloud Control Panel
After some time, you will be able to see the new volume type when you refresh the Block Storage home page.
From the Horizon Interface
The Volumes page will refresh itself, and you will see the change reflected in the Type column.
Using the OpenStack CLI
Run the command to retrieve a list of your block storage volumes. With this command, you will also be able to see the volumes' current type.
Go further
For more information and tutorials, please see our other Public Cloud support guides or explore the guides for other OVHcloud products and services.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.