]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephfs: add note about path usage in snap-schedule
authorMilind Changire <mchangir@redhat.com>
Tue, 29 Nov 2022 08:06:17 +0000 (13:36 +0530)
committerMilind Changire <mchangir@redhat.com>
Thu, 27 Apr 2023 08:58:50 +0000 (14:28 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit f4be802e8e3db0b72a273d6da3efbce76c2ae198)

doc/cephfs/snap-schedule.rst

index ffde505533b96cb82f79b59c5c3057df27e244e4..74e2e2fd96b998a77245e4de52eba13c9041814e 100644 (file)
@@ -149,6 +149,19 @@ Examples::
   ceph fs snap-schedule retention add / 24h4w # add 24 hourly and 4 weekly to retention
   ceph fs snap-schedule retention remove / 7d4w # remove 7 daily and 4 weekly, leaves 24 hourly
 
+.. note: When adding a path to snap-schedule, remember to strip off the mount
+   point path prefix. Paths to snap-schedule should start at the appropriate
+   CephFS file system root and not at the host file system root.
+   e.g. if the Ceph File System is mounted at ``/mnt`` and the path under which
+   snapshots need to be taken is ``/mnt/some/path`` then the acutal path required
+   by snap-schedule is only ``/some/path``.
+
+.. note: It should be noted that the "created" field in the snap-schedule status
+   command output is the timestamp at which the schedule was created. The "created"
+   timestamp has nothing to do with the creation of actual snapshots. The actual
+   snapshot creation is accounted for in the "created_count" field, which is a
+   cumulative count of the total number of snapshots created so far.
+
 Active and inactive schedules
 -----------------------------
 Snapshot schedules can be added for a path that doesn't exist yet in the