exposed via the new `--snap-id` option for `rbd clone` command.
* RBD: The output of `rbd snap ls --all` command now includes the original
type for trashed snapshots.
+* CephFS: "ceph fs clone status" command will now print statistics about clone
+ progress in terms of how much data has been cloned (in both percentage as
+ well as bytes) and how many files have been cloned.
+* CephFS: "ceph status" command will now print a progress bar when cloning is
+ ongoing. If clone jobs are more than the cloner threads, it will print one
+ more progress bar that shows total amount of progress made by both ongoing
+ as well as pending clones. Both progress are accompanied by messages that
+ show number of clone jobs in the respective categories and the amount of
+ progress made by each of them.
>=18.0.0
::
{
- "status": {
- "state": "in-progress",
- "source": {
- "volume": "cephfs",
- "subvolume": "subvol1",
- "snapshot": "snap1"
- }
+ "status": {
+ "state": "in-progress",
+ "source": {
+ "volume": "cephfs",
+ "subvolume": "subvol1",
+ "snapshot": "snap1"
+ },
+ "progress_report": {
+ "percentage cloned": "12.24%",
+ "amount cloned": "376M/3.0G",
+ "files cloned": "4/6"
}
+ }
}
+A progress report is also printed in the output when clone is ``in-progress``.
+Here the progress is reported only for the specific clone. For collective
+progress made by all ongoing clones, a progress bar is printed at the bottom
+in ouput of ``ceph status`` command::
+
+ progress:
+ 3 ongoing clones - average progress is 47.569% (10s)
+ [=============...............] (remaining: 11s)
+
+If the number of clone jobs are more than cloner threads, two progress bars
+are printed, one for ongoing clones (same as above) and other for all
+(ongoing+pending) clones::
+
+ progress:
+ 4 ongoing clones - average progress is 27.669% (15s)
+ [=======.....................] (remaining: 41s)
+ Total 5 clones - average progress is 41.667% (3s)
+ [===========.................] (remaining: 4s)
+
.. note:: The ``failure`` section will be shown only if the clone's state is ``failed`` or ``cancelled``
Here is an example of a ``failed`` clone: