Hi Ilya Thank you very much for clarification. I created a cronjob based script which is available here https://github.com/oposs/rbd_snapshot_manager Tobias ----- Ursprüngliche Mail ----- Von: "Ilya Dryomov" <idryomov@xxxxxxxxx> An: "Tobias Bossert" <bossert@xxxxxxxxxx> CC: "ceph-users" <ceph-users@xxxxxxx> Gesendet: Sonntag, 20. November 2022 13:56:16 Betreff: Re: Scheduled RBD volume snapshots without mirrioring (-schedule) On Fri, Nov 18, 2022 at 3:46 PM Tobias Bossert <bossert@xxxxxxxxxx> wrote: > > Dear List > > I'm searching for a way to automate the snapshot creation/cleanup of RBD volumes. Ideally, there would be something like the "Snapshot Scheduler for cephfs"[1] but I understand > this is not as "easy" with RBD devices since ceph has no idea of the overlaying filesystem. > > So what I basically need is: > > - Create a snapshot of RBD image X, every N hours > - Cleanup/thin-out snapshots which are older than Y > - I do not care about mirroring > - I do not care about possible filesystem inconsistencies > > > Is there a way to accomplish such a behavior within ceph or do I have to relay on external scripts (If yes, is anyone aware of such a script?) Hi Tobias, I don't think there is a way to accomplish that within Ceph. The existing RBD snapshot scheduling functionality is limited to mirror snapshots. I have seen a few referenced on this mailing list -- typically they are under a few dozen lines of Bash so people tend to write them from scratch tailored specifically to their environment (OpenStack, etc). Thanks, Ilya > > > [1] https://docs.ceph.com/en/quincy/cephfs/snap-schedule/ > > > Many thanks in advance > > Tobias > _______________________________________________ > ceph-users mailing list -- ceph-users@xxxxxxx > To unsubscribe send an email to ceph-users-leave@xxxxxxx _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx