* CephFS: Full support for subvolumes and subvolume groups is now available
for snap_schedule Manager module.
+* CephFS: The `subvolume snapshot clone` command now depends on the config option
+ `snapshot_clone_no_wait` which is used to reject the clone operation when
+ all the cloner threads are busy. This config option is enabled by default which means
+ that if no cloner threads are free, the clone request errors out with EAGAIN.
+ The value of the config option can be fetched by using:
+ `ceph config get mgr mgr/volumes/snapshot_clone_no_wait`
+ and it can be disabled by using:
+ `ceph config set mgr mgr/volumes/snapshot_clone_no_wait false`
+
>=18.0.0
* The RGW policy parser now rejects unknown principals by default. If you are
$ ceph fs subvolume snapshot clone <vol_name> <subvol_name> <snap_name> <target_subvol_name>
+.. note:: ``subvolume snapshot clone`` command depends upon the above mentioned config option ``snapshot_clone_no_wait``
+
If a snapshot (source subvolume) is a part of non-default group, the group name needs to be specified::
$ ceph fs subvolume snapshot clone <vol_name> <subvol_name> <snap_name> <target_subvol_name> --group_name <subvol_group_name>
+If a snapshot (source subvolume) is a part of non-default group, the group name needs to be specified:
+
Cloned subvolumes can be a part of a different group than the source snapshot (by default, cloned subvolumes are created in default group). To clone to a particular group use::
$ ceph fs subvolume snapshot clone <vol_name> <subvol_name> <snap_name> <target_subvol_name> --target_group_name <subvol_group_name>
$ ceph fs subvolume snapshot clone <vol_name> <subvol_name> <snap_name> <target_subvol_name> --pool_layout <pool_layout>
-Configure the maximum number of concurrent clones. The default is 4::
+To check the status of a clone operation use::
- $ ceph config set mgr mgr/volumes/max_concurrent_clones <value>
+ ceph fs subvolume snapshot clone <vol_name> <subvol_name> <snap_name> <target_subvol_name> --pool_layout <pool_layout>
-To check the status of a clone operation use::
+To check the status of a clone operation use:
- $ ceph fs clone status <vol_name> <clone_name> [--group_name <group_name>]
+.. prompt:: bash #
+
+ ceph fs clone status <vol_name> <clone_name> [--group_name <group_name>]
A clone can be in one of the following states:
.. note:: The canceled cloned may be deleted by supplying the ``--force`` option to the `fs subvolume rm` command.
+Configurables
+~~~~~~~~~~~~~
+
+Configure the maximum number of concurrent clone operations. The default is 4:
+
+.. prompt:: bash #
+
+ ceph config set mgr mgr/volumes/max_concurrent_clones <value>
+
+Configure the snapshot_clone_no_wait option :
+
+.. prompt:: bash #
+
+ ``snapshot_clone_no_wait`` config option is used to reject the clone creation request when the cloner threads
+ ( which can be configured using above option i.e. ``max_concurrent_clones``) are not available.
+ It is enabled by default i.e. the value set is True, whereas it can be configured by using below command.
+
+ ceph config set mgr mgr/volumes/snapshot_clone_no_wait <bool>
+
+ The current value of ``snapshot_clone_no_wait`` can be fetched by using below command.
+
+ ceph config get mgr mgr/volumes/snapshot_clone_no_wait
+
.. _subvol-pinning: