blob: 6a786d9ae97caa64b77fe9150506a42819641374 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
tags:
- openstack
- cinder
- howto
---
Shelve server, force volume into being available rather than reserved, set new volume type, unshelve server.
**Retype command**
` as-project c7ae9902423a4fa5b68bc789f861016c os3 volume set --type mcs-vtype-5000 --migration-policy on-demand 2003c43b-ec96-42db-8890-1bacf979389e`
**Why shelve?**
Because Nova seems to not generate the new QoS properties in the domain when we simply stop/start.
**Migration**
The retype commands copies the volume to a new one with the correct QoS.
**Migration fails in Cinder when trying to call Nova (keystone auth error)**
It calls Nova to update attachment but there is no need for this, so to bypass this error I tried deleting the volume attachment outright. After that it went smooth.
That forces us to poke in the database to "undelete" the volume_attachment.
*The above may be faster*
It is probably faster to skip unnecessary migration and such by just changing the volume type in the database outright and unshelve then, because the only thing that changes are QoS properties in the libvirt domain.
**This is untested**
|