Cinder - Resize root volume
Some code To resize the root volume of an instance can be tricky, this worked for me
Note some commands, particularly "cinder reset-state" returned a HTTP 403, i had to run those as admin
1[root@vm-os-ks01 ~]# source admin.rc
2[root@vm-os-ks01 ~]# cinder reset-state --state available b35e676a-7593-458d-b6f4-cc60e075cfd4
3[root@vm-os-ks01 ~]# nova volume-list
4+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
5| ID | Status | Display Name | Size | Volume Type | Attached to |
6+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
7| e1072658-7399-4505-a563-a5b6ed062325 | in-use | | 10 | sata | 11684d86-5e17-4760-a32b-26ed6c47f1c1 |
8| b5ac679f-76ae-45aa-b6ae-c2d4d87a97d0 | in-use | | 10 | sata | 65717578-a520-4c63-a3b4-63537bce2332 |
9| c3c88bc1-a6b8-4bdc-b1b1-d399b0696be8 | in-use | | 10 | sata | 815043a2-44fa-487e-9912-ecc015bf6a46 |
10| bef780ff-ac9f-492d-9504-11062e30acdf | in-use | | 40 | sata | 76d7a922-3b5e-4154-ab61-cfca7810369d |
11| b35e676a-7593-458d-b6f4-cc60e075cfd4 | available | | 40 | sata | 933899fe-b218-4eff-b2b1-658ae8068350 |
12+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
13[root@vm-os-ks01 ~]# cinder extend b35e676a-7593-458d-b6f4-cc60e075cfd4 80
14[root@vm-os-ks01 ~]# nova volume-list
15+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
16| ID | Status | Display Name | Size | Volume Type | Attached to |
17+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
18| e1072658-7399-4505-a563-a5b6ed062325 | in-use | | 10 | sata | 11684d86-5e17-4760-a32b-26ed6c47f1c1 |
19| b5ac679f-76ae-45aa-b6ae-c2d4d87a97d0 | in-use | | 10 | sata | 65717578-a520-4c63-a3b4-63537bce2332 |
20| c3c88bc1-a6b8-4bdc-b1b1-d399b0696be8 | in-use | | 10 | sata | 815043a2-44fa-487e-9912-ecc015bf6a46 |
21| bef780ff-ac9f-492d-9504-11062e30acdf | in-use | | 40 | sata | 76d7a922-3b5e-4154-ab61-cfca7810369d |
22| b35e676a-7593-458d-b6f4-cc60e075cfd4 | available | | 80 | sata | 933899fe-b218-4eff-b2b1-658ae8068350 |
23+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
24[root@vm-os-ks01 ~]# cinder reset-state --state in-use b35e676a-7593-458d-b6f4-cc60e075cfd4
25[root@vm-os-ks01 ~]# nova volume-list
26+--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
27| ID | Status | Display Name | Size | Volume Type | Attached to |
28+--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
29| e1072658-7399-4505-a563-a5b6ed062325 | in-use | | 10 | sata | 11684d86-5e17-4760-a32b-26ed6c47f1c1 |
30| b5ac679f-76ae-45aa-b6ae-c2d4d87a97d0 | in-use | | 10 | sata | 65717578-a520-4c63-a3b4-63537bce2332 |
31| c3c88bc1-a6b8-4bdc-b1b1-d399b0696be8 | in-use | | 10 | sata | 815043a2-44fa-487e-9912-ecc015bf6a46 |
32| bef780ff-ac9f-492d-9504-11062e30acdf | in-use | | 40 | sata | 76d7a922-3b5e-4154-ab61-cfca7810369d |
33| b35e676a-7593-458d-b6f4-cc60e075cfd4 | in-use | | 80 | sata | 933899fe-b218-4eff-b2b1-658ae8068350 |
34+--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
35[root@vm-os-ks01 ~]#