[ceph-users] Re: cephfs - max snapshot limit?

2023-05-01 Thread Venky Shankar
Hi Arnaud, On Fri, Apr 28, 2023 at 2:16 PM MARTEL Arnaud wrote: > > Hi Venky, > > > Also, at one point the kclient wasn't able to handle more than 400 > > snapshots (per file system), but we have come a long way from that and that > > is not a constraint right now. > Does it mean that there is

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-29 Thread Jakob Haufe
On Fri, 28 Apr 2023 22:46:32 +0530 Milind Changire wrote: > If a dir doesn't exist at the moment of snapshot creation, then the > schedule is deactivated for that dir. Ha! Good catch! As often, I completely forgot about the /volumes prefix... -- ceterum censeo microsoftem esse delendam.

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-28 Thread Milind Changire
If a dir doesn't exist at the moment of snapshot creation, then the schedule is deactivated for that dir. On Fri, Apr 28, 2023 at 8:39 PM Jakob Haufe wrote: > On Thu, 27 Apr 2023 11:10:07 +0200 > Tobias Hachmer wrote: > > > > Given the limitation is per directory, I'm currently trying this:

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-28 Thread Jakob Haufe
> FYI, PR - https://github.com/ceph/ceph/pull/51278 Thanks! I just applied this to my cluster and will report back. Looks simple enough, tbh. Cheers, sur5r -- ceterum censeo microsoftem esse delendam. pgp1U9cMc_XaM.pgp Description: OpenPGP digital signature

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-28 Thread Jakob Haufe
On Thu, 27 Apr 2023 11:10:07 +0200 Tobias Hachmer wrote: > > Given the limitation is per directory, I'm currently trying this: > > > > / 1d 30d > > /foo 1h 48h > > /bar 1h 48h > > > > I forgot to activate the new schedules yesterday so I can't say whether > > it works as expected yet.

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-28 Thread Milind Changire
FYI, PR - https://github.com/ceph/ceph/pull/51278 On Fri, Apr 28, 2023 at 8:49 AM Milind Changire wrote: > There's a default/hard limit of 50 snaps that's maintained for any dir via > the definition MAX_SNAPS_PER_PATH = 50 in the source file > src/pybind/mgr/snap_schedule/fs/schedule_client.py.

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-28 Thread MARTEL Arnaud
Hi Venky, > Also, at one point the kclient wasn't able to handle more than 400 snapshots > (per file system), but we have come a long way from that and that is not a > constraint right now. Does it mean that there is no more limit to the number of snapshots per filesystem? And, if not, do you

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-28 Thread Venky Shankar
Hi Tobias, On Thu, Apr 27, 2023 at 2:42 PM Tobias Hachmer wrote: > > Hi sur5r, > > Am 4/27/23 um 10:33 schrieb Jakob Haufe: > > On Thu, 27 Apr 2023 09:07:10 +0200 > > Tobias Hachmer wrote: > > > >> But we observed that max 50 snapshot are preserved. If a new snapshot is > >> created the

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-27 Thread Milind Changire
There's a default/hard limit of 50 snaps that's maintained for any dir via the definition MAX_SNAPS_PER_PATH = 50 in the source file src/pybind/mgr/snap_schedule/fs/schedule_client.py. Every time the snapshot names are read for pruning, the last thing done is to check the length of the list and

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-27 Thread Tobias Hachmer
Hi sur5r, Am 4/27/23 um 10:33 schrieb Jakob Haufe: > On Thu, 27 Apr 2023 09:07:10 +0200 > Tobias Hachmer wrote: > >> But we observed that max 50 snapshot are preserved. If a new snapshot is >> created the oldest 51st is deleted. >> >> Is there a limit for maximum cephfs snapshots or maybe this

[ceph-users] Re: cephfs - max snapshot limit?

2023-04-27 Thread Jakob Haufe
On Thu, 27 Apr 2023 09:07:10 +0200 Tobias Hachmer wrote: > But we observed that max 50 snapshot are preserved. If a new snapshot is > created the oldest 51st is deleted. > > Is there a limit for maximum cephfs snapshots or maybe this is a bug? I've been wondering the same thing for about 6