From 89be20126e05cc3eb99244174fd252f1be003294 Mon Sep 17 00:00:00 2001 From: Xing Yang Date: Wed, 22 Apr 2015 13:13:10 -0400 Subject: [PATCH] New consistency group APIs In Kilo, two new APIs were added to support consistency groups in Cinder: * Modify consistency groups. * Create consistency group from a snapshot of a consistency group. This patch adds documentation for the new APIs. Closes-Bug: 1362882 Change-Id: Ibf9c5dcb5726cea470c5874542ea4df19933179c --- .../section_consistency_groups.xml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/doc/admin-guide-cloud/blockstorage/section_consistency_groups.xml b/doc/admin-guide-cloud/blockstorage/section_consistency_groups.xml index 952ee231d9..35a3b0f5bb 100644 --- a/doc/admin-guide-cloud/blockstorage/section_consistency_groups.xml +++ b/doc/admin-guide-cloud/blockstorage/section_consistency_groups.xml @@ -85,6 +85,13 @@ Delete a consistency group. + + Modify a consistency group. + + + Create a consistency group from the snapshot of another + consistency group. + The following operations are not allowed if a volume is in a consistency group: @@ -220,4 +227,31 @@ volume-types The force flag is needed when there are volumes in the consistency group. $ cinder consisgroup-delete --force 1de80c27-3b2f-47a6-91a7-e867cbe36462 + Modify a consistency group: + cinder consisgroup-update +[--name NAME] +[--description DESCRIPTION] +[--add-volumes UUID1,UUID2,......] +[--remove-volumes UUID3,UUID4,......] +CG + The parameter CG is required. + It can be a name or UUID of a consistency group. + UUID1,UUID2,...... are + UUIDs of one or more volumes to be added to the + consistency group, separated by commas. Default is None. + UUID3,UUId4,...... are + UUIDs of one or more volumes to be removed from the + consistency group, separated by commas. Default is None. + + $ cinder consisgroup-update --name 'new name' --description 'new description' --add-volumes 0b3923f5-95a4-4596-a536-914c2c84e2db,1c02528b-3781-4e32-929c-618d81f52cf3 --remove-volumes 8c0f6ae4-efb1-458f-a8fc-9da2afcc5fb1,a245423f-bb99-4f94-8c8c-02806f9246d8 1de80c27-3b2f-47a6-91a7-e867cbe36462 + Create a consistency group from the snapshot of another consistency + group: + + cinder consisgroup-create-from-src +[--cgsnapshot CGSNAPSHOT] +[--name NAME] +[--description DESCRIPTION] + The parameter CGSNAPSHOT is a name + or UUID of a snapshot of a consistency group. + $ cinder consisgroup-create-from-src --cgsnapshot 6d9dfb7d-079a-471e-b75a-6e9185ba0c38 --name 'new cg' --description 'new cg from cgsnapshot'