]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: document `clone cancel` command 34018/head
authorVenky Shankar <vshankar@redhat.com>
Tue, 25 Feb 2020 07:29:54 +0000 (02:29 -0500)
committerRamana Raja <rraja@redhat.com>
Wed, 18 Mar 2020 05:33:21 +0000 (11:03 +0530)
Fixes: http://tracker.ceph.com/issues/44208
Signed-off-by: Venky Shankar <vshankar@redhat.com>
doc/cephfs/fs-volumes.rst

index 052f4f5d89e7640cad03818de164637f436cdf72..62eb4ec0e5b748e0c9fb61529268ea990f017d1b 100644 (file)
@@ -258,5 +258,28 @@ only unprotected snapshots can be removed. This guarantees that a snapshot canno
 .. note:: Cloning only synchronizes directories, regular files and symbolic links. Also, inode timestamps (access and
           modification times) are synchronized upto seconds granularity.
 
+An `in-progress` or a `pending` clone operation can be canceled. To cancel a clone operation use the `clone cancel` command::
+
+  $ ceph fs clone cancel <vol_name> <clone_name> [--group_name <group_name>]
+
+On successful cancelation, the cloned subvolume is moved to `canceled` state::
+
+  $ ceph fs subvolume snapshot protect cephfs subvol1 snap1
+  $ ceph fs subvolume snapshot clone cephfs subvol1 snap1 clone1
+  $ ceph fs clone cancel cephfs clone1
+  $ ceph fs clone status cephfs clone1
+  {
+    "status": {
+      "state": "canceled",
+      "source": {
+        "volume": "cephfs",
+        "subvolume": "subvol1",
+        "snapshot": "snap1"
+      }
+    }
+  }
+
+.. note:: The canceled cloned can be deleted by using --force option in `fs subvolume rm` command.
+
 .. _manila: https://github.com/openstack/manila
 .. _CSI: https://github.com/ceph/ceph-csi