On Fri, Nov 18, 2022 at 3:46 PM Tobias Bossert <boss...@oetiker.ch> 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@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to