]> 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, 30 Mar 2023 02:25:32 +0000 (07:55 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit f4be802e8e3db0b72a273d6da3efbce76c2ae198)

doc/cephfs/snap-schedule.rst

index 2728203f49c58e924b8452b2e8fb6433def55281..fb9c85b5a44c537e70d5360d5e8173b0af5eab28 100644 (file)
@@ -142,6 +142,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