Ask Your Question

Revision history [back]

View http://docs.openstack.org/openstack-ops/content/user_facing_block_storage.html

OpenStack Block Storage also allows for creating snapshots of volumes. Remember that this is a block-level snapshot that is crash consistent, so it is best if the volume is not connected to an instance when the snapshot is taken and second best if the volume is not in use on the instance it is attached to

[root@icehouse1 ~(keystone_demo)]# cinder list

+--------------------------------------+-----------+-------------------+------+-------------+----------+--------------------------------------+
|                  ID                  |   Status  |    Display Name   | Size | Volume Type | Bootable |             Attached to              |
+--------------------------------------+-----------+-------------------+------+-------------+----------+--------------------------------------+
    | 2ae82a1a-7f80-4d62-9ce8-2e08ba0516b6 |   in-use  |                   |  5   |     None    |   true   | 6dbb64aa-4410-4901-a2bd-9593b2a8fbf4 |
    | 6f5d2e0a-47cc-473d-a4a7-a2496080c95c | available |   CentOSPWLVG07   |  10  |  glusterfs  |   true   |                                      |
    | 7672dfa6-5e6a-4de1-bd11-94da80109194 |   in-use  | CentOSGenericVLG7 |  10  |  glusterfs  |   true   | a45c2363-98d1-4907-a072-6c3f5eca877e |
    | ffd7e313-69ff-49b5-bd3e-10d1f0bc235b |   in-use   |    VF20PWLG1610   |  7   |  glusterfs  |   true   | b34b33f1-24ff-4253-b51d-371d1508a44e |
    +--------------------------------------+-----------+-------------------+------+-------------+----------+-

[root@icehouse1 ~(keystone_demo)]# cinder snapshot-create --display_name TestCS07 6f5d2e0a-47cc-473d-a4a7-a2496080c95c

[root@icehouse1 ~(keystone_demo)]# cinder snapshot-list
+--------------------------------------+--------------------------------------+-----------+--------------+------+
|                  ID                  |              Volume ID               |   Status  | Display Name | Size |
+--------------------------------------+--------------------------------------+-----------+--------------+------+
| 022d3b9c-d79e-40e7-a0a1-66c070e47260 | 6f5d2e0a-47cc-473d-a4a7-a2496080c95c | available |   TestCS07   |  10  |
+--------------------------------------+--------------------------------------+-----------+--------------+------+

Next step create instance via volume snapshot ( creates new volume) I did in dashboard