OpenStack: Create Cinder Volume
Jump to navigation
Jump to search
[root@server2-a ~(keystone_admin)]$ source /root/keystonerc_myuser
[root@server2-a ~(keystone_myuser)]$ cinder create --display-name vol1 2
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2015-04-28T13:56:54.874922 |
| display_description | None |
| display_name | vol1 |
| encrypted | False |
| id | e2844fa9-9592-40b4-b7ac-f9e7eeb6dd84 |
| metadata | {} |
| size | 2 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+[root@server2-a ~(keystone_myuser)]$ vgs
VG #PV #LV #SN Attr VSize VFree
cinder-volumes 1 1 0 wz--n- 10.00g 8.00g
[root@server2-a ~(keystone_myuser)]$ lvs
LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
volume-e2844fa9-9592-40b4-b7ac-f9e7eeb6dd84 cinder-volumes -wi-a----- 2.00g
[root@server2-a ~(keystone_myuser)]$[root@server2-a ~(keystone_myuser)]$ cinder show vol1
+------------------------------+--------------------------------------+
| Property | Value |
+------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2015-04-28T13:56:54.000000 |
| display_description | None |
| display_name | vol1 |
| encrypted | False |
| id | e2844fa9-9592-40b4-b7ac-f9e7eeb6dd84 |
| metadata | {} |
| os-vol-tenant-attr:tenant_id | 02f8b026fc754acea4466e5c1e28eecc |
| size | 2 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| volume_type | None |
+------------------------------+--------------------------------------+
[root@server2-a ~(keystone_myuser)]$
[root@server2-a ~(keystone_myuser)]$ cinder delete vol1