Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Last active January 4, 2016 04:29
Show Gist options
  • Save hub-cap/8568477 to your computer and use it in GitHub Desktop.
Save hub-cap/8568477 to your computer and use it in GitHub Desktop.
baz@killxml:/opt/stack/cinder$ cinder type-create lvm
+--------------------------------------+------+
| ID | Name |
+--------------------------------------+------+
| a7f42472-bc32-4f13-a581-e12f4166bb11 | lvm |
+--------------------------------------+------+
baz@killxml:/opt/stack/cinder$ cinder type-create lvmcinder type-key lvm set volume_backend_name=LVM_iSCSI^C
baz@killxml:/opt/stack/cinder$ ^C
baz@killxml:/opt/stack/cinder$ cinder type-key lvm set volume_backend_name=LVM_iSCSI
baz@killxml:/opt/stack/cinder$ cinder extra-specs-list
+--------------------------------------+------+----------------------------------------+
| ID | Name | extra_specs |
+--------------------------------------+------+----------------------------------------+
| a7f42472-bc32-4f13-a581-e12f4166bb11 | lvm | {u'volume_backend_name': u'LVM_iSCSI'} |
+--------------------------------------+------+----------------------------------------+
baz@killxml:/opt/stack/cinder$ cinder create --volume_type lvm --display_name inlvm 1
+-------------------+--------------------------------------+
| Property | Value |
+-------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-01-22T22:10:29.987452 |
| description | None |
| id | 129be20e-3a9e-4deb-a129-552a324c2e4d |
| metadata | {} |
| name | inlvm |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| user_id | d34d145e8d78415abe6eb5b62f603830 |
| volume_type | lvm |
+-------------------+--------------------------------------+
baz@killxml:/opt/stack/cinder$ cinder type-key lvm set online_resize=True
baz@killxml:/opt/stack/cinder$ cinder extra-specs-list
+--------------------------------------+------+-------------------------------------------------------------------+
| ID | Name | extra_specs |
+--------------------------------------+------+-------------------------------------------------------------------+
| a7f42472-bc32-4f13-a581-e12f4166bb11 | lvm | {u'online_resize': u'True', u'volume_backend_name': u'LVM_iSCSI'} |
+--------------------------------------+------+-------------------------------------------------------------------+
baz@killxml:/opt/stack/cinder$ cinder create --volume_type lvm --display_name bork1 1
+-------------------+--------------------------------------+
| Property | Value |
+-------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-01-22T22:11:11.778293 |
| description | None |
| id | 92277813-a146-45b9-a8d5-99012e2c1d88 |
| metadata | {} |
| name | bork1 |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| user_id | d34d145e8d78415abe6eb5b62f603830 |
| volume_type | lvm |
+-------------------+--------------------------------------+
baz@killxml:/opt/stack/cinder$ cinder list
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+
| 129be20e-3a9e-4deb-a129-552a324c2e4d | available | inlvm | 1 | lvm | false | |
| 92277813-a146-45b9-a8d5-99012e2c1d88 | error | bork1 | 1 | lvm | false | |
+--------------------------------------+-----------+-------+------+-------------+----------+-------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment