From dbcb2edded4d6131c71599cfa12f96a9a6338d31 Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Tue, 16 May 2023 08:40:54 +0530 Subject: [PATCH] doc/cephfs: Add note how mds_max_snaps_per_dir affects snapshot retention Signed-off-by: Jakob Haufe (cherry picked from commit 2e8af66ed4678775a3f686738c12ac04abfd770e) --- doc/cephfs/snap-schedule.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/cephfs/snap-schedule.rst b/doc/cephfs/snap-schedule.rst index fb9c85b5a44c5..70efe2547f10c 100644 --- a/doc/cephfs/snap-schedule.rst +++ b/doc/cephfs/snap-schedule.rst @@ -155,6 +155,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 -- 2.39.5