Awesome! Thanks.
What is the default then for RBD images? Is it the default to delete them
and not to use the trash? Or, do we need a configuration to make Ceph use
the trash?
We are using Ceph Octopus.

On Wed, May 10, 2023 at 6:33 PM Reto Gysi <rlg...@gmail.com> wrote:

> Hi
>
> For me with ceph version 17.2.6 rbd doesn't allow me to (delete (I've
> configured that delete only moves image to trash)/) purge an image that
> still has snapshots. I need to first delete all the snapshots.
>
> from man page:
>
> rbd rm image-spec
>              Delete an rbd image (including all data blocks). If the
> image has snapshots, this fails and nothing is deleted.
>
> rbd snap purge image-spec
>              Remove all unprotected snapshots from an image.
>
> rbd snap rm [--force] snap-spec
>              Remove the specified snapshot.
> rbd snap unprotect snap-spec
>              Unprotect a snapshot from deletion (undo snap protect).  If
> cloned children remain, snap unprotect fails.  (Note that clones may
> exist in different pools than the parent snapshot.)
>
> Regards
>
> Reto
>
>
> Am Mi., 10. Mai 2023 um 20:58 Uhr schrieb Work Ceph <
> work.ceph.user.mail...@gmail.com>:
>
>> Hello guys,
>> We have a doubt regarding snapshot management, when a protected snapshot
>> is
>> created, should it be deleted when its RBD image is removed from the
>> system?
>>
>> If not, how can we list orphaned snapshots in a pool?
>> _______________________________________________
>> 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