Re: Protected snapshot deleted when RBD image is deleted

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

 



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 <rlgysi@xxxxxxxxx> 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.mailing@xxxxxxxxx>:
>
>> 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@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




[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