Re: cephfs - max snapshot limit?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 27 Apr 2023 09:07:10 +0200
Tobias Hachmer <t.hachmer@xxxxxx> 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 months now and found the
reason just yesterday.

The snap-schedule mgr module has a hard limit on how many snapshots it
preserves, see [1]. It's even documented at [2] in section
"Limitations" near the end of the page.

The commit[3] implementing this does not only not explain the reason
for the number at all, it doesn't even mention the fact it implements
this.

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.

Cheers,
sur5r

[1] https://github.com/ceph/ceph/blob/3d7761bd59b8e5ebac1d9a136d020f0f8d2eaf32/src/pybind/mgr/snap_schedule/fs/schedule_client.py#L21
[2] https://docs.ceph.com/en/quincy/cephfs/snap-schedule/
[3] https://github.com/ceph/ceph/commit/a48efa43dbe4c623ae88b84ef538ee306fc1eee8

-- 
ceterum censeo microsoftem esse delendam.

Attachment: pgpqH6BUncJAj.pgp
Description: OpenPGP digital signature

_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux