OVH Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVH Community members.

Instance downgrade (eg: B2 => S1-4)


#1

This post was flagged by the community and is temporarily hidden.


Detach a boot volume
#2

Hi,

With using a volume (bootable) as the root disk, you can resize the VM as you wish. It is just like the “-flex” flavors. You are fixing your disk to a size so up and down resize is possible.

Example:
root@testvm:~# openstack volume create --size 50 --type high-speed --image “Debian 10” --bootable vmdisk50g
±--------------------±-------------------------------------+
| Field | Value |
±--------------------±-------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2021-02-08T20:21:02.891385 |
| description | None |
| encrypted | False |
| id | b54d401b-a847-409e-a992-ab8647d29894 |
| multiattach | False |
| name | vmdisk50g |
| properties | |
| replication_status | disabled |
| size | 50 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| type | high-speed |
| updated_at | None |
| user_id | REMOVED |
±--------------------±-------------------------------------+

root@testvm:~# openstack volume list
±-------------------------------------±----------±----------±-----±------------+
| ID | Name | Status | Size | Attached to |
±-------------------------------------±----------±----------±-----±------------+
| b54d401b-a847-409e-a992-ab8647d29894 | vmdisk50g | available | 50 | |
±-------------------------------------±----------±----------±-----±------------+
root@testvm:~# openstack server create --network Ext-Net --flavor c2-7 --key-name validator --volume b54d401b-a847-409e-a992-ab8647d29894 resizetest
±----------------------------±--------------------------------------------+
| Field | Value |
±----------------------------±--------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-STS:power_state | NOSTATE |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | None |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| adminPass | |
| config_drive | |
| created | 2021-02-08T20:23:21Z |
| flavor | c2-7 (1ec89300-04f1-4758-b7b9-43de62b501c5) |
| hostId | |
| id | 1d65d648-fe3e-47b0-921f-6710dd9d4a22 |
| image | N/A (booted from volume) |
| key_name | validator |
| name | resizetest |
| progress | 0 |
| project_id | 308895fb464e4a7ca3c7199a907b1def |
| properties | |
| security_groups | name=‘default’ |
| status | BUILD |
| updated | 2021-02-08T20:23:21Z |
| user_id | b417b26d0b514487841bbcf06ae08eca |
| volumes_attached | id=‘b54d401b-a847-409e-a992-ab8647d29894’ |
±----------------------------±--------------------------------------------+
root@testvm:~# openstack server list
±-------------------------------------±-----------±-------±------------------------------------------------±-------------------------±-------+
| ID | Name | Status | Networks | Image | Flavor |
±-------------------------------------±-----------±-------±------------------------------------------------±-------------------------±-------+
| 1d65d648-fe3e-47b0-921f-6710dd9d4a22 | resizetest | ACTIVE | Ext-Net=yyy.yyy.yyy.yyy, yyy:yyy:yy:yyyy::yyyy | N/A (booted from volume) | c2-7 |
±-------------------------------------±-----------±-------±------------------------------------------------±-------------------------±-------+
root@testvm:~# openstack server resize --flavor s1-2 1d65d648-fe3e-47b0-921f-6710dd9d4a22
root@testvm:~# openstack server list
±-------------------------------------±-----------±-------±------------------------------------------------±-------------------------±-------+
| ID | Name | Status | Networks | Image | Flavor |
±-------------------------------------±-----------±-------±------------------------------------------------±-------------------------±-------+
| 1d65d648-fe3e-47b0-921f-6710dd9d4a22 | resizetest | ACTIVE | Ext-Net=yyy.yyy.yyy.yyy, yyy:yyy:yy:yyyy::yyyy | N/A (booted from volume) | s1-2 |
±-------------------------------------±-----------±-------±------------------------------------------------±-------------------------±-------+


#3

Thank you so much for voicing here.
I understand you’re favoring a detachable/resizable volume solution (which I’m completely fine with since it’s resolving even more than just this problem).

Then let’s give up the UI-based / built-in resizing (and new instance templates) and discuss volume-detachment at Detach a boot volume.