]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephfs: Add note how mds_max_snaps_per_dir affects snapshot retention
authorJakob Haufe <sur5r@sur5r.net>
Tue, 16 May 2023 03:10:54 +0000 (08:40 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 2 Aug 2023 06:27:02 +0000 (11:57 +0530)
Signed-off-by: Jakob Haufe <sur5r@sur5r.net>
(cherry picked from commit 2e8af66ed4678775a3f686738c12ac04abfd770e)

doc/cephfs/snap-schedule.rst

index 74e2e2fd96b998a77245e4de52eba13c9041814e..5c4b2c1dec64cc4cb5f8ae6aa6cb516c569c3f3c 100644 (file)
@@ -162,6 +162,11 @@ Examples::
    snapshot creation is accounted for in the "created_count" field, which is a
    cumulative count of the total number of snapshots created so far.
 
+.. note: The maximum number of snapshots to retain per directory is limited by the
+   config tunable `mds_max_snaps_per_dir`. This tunable defaults to 100.
+   To ensure a new snapshot can be created, one snapshot less than this will be
+   retained. So by default, a maximum of 99 snapshots will be retained.
+
 Active and inactive schedules
 -----------------------------
 Snapshot schedules can be added for a path that doesn't exist yet in the