From: Jakob Haufe Date: Tue, 16 May 2023 03:10:54 +0000 (+0530) Subject: doc/cephfs: Add note how mds_max_snaps_per_dir affects snapshot retention X-Git-Tag: v18.2.1~264^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1465c1a9577fe1f87952b68dcd5f571f64ddcf73;p=ceph.git doc/cephfs: Add note how mds_max_snaps_per_dir affects snapshot retention Signed-off-by: Jakob Haufe (cherry picked from commit 2e8af66ed4678775a3f686738c12ac04abfd770e) --- diff --git a/doc/cephfs/snap-schedule.rst b/doc/cephfs/snap-schedule.rst index 74e2e2fd96b9..5c4b2c1dec64 100644 --- a/doc/cephfs/snap-schedule.rst +++ b/doc/cephfs/snap-schedule.rst @@ -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