Yes. You can see whether the snapshots are protected by using snap rm
instead of snap purge.

# rbd --pool mypool snap rm 5216ba99-1d8e-4155-9877-7d77d7b6caa0@snap
# rbd --pool mypool snap unprotect 5216ba99-1d8e-4155-9877-7d77d7b6caa0@snap

- WP

On Fri, Apr 4, 2014 at 6:37 AM, Josh Durgin <josh.dur...@inktank.com> wrote:
> On 04/03/2014 03:36 PM, Jonathan Gowar wrote:
>>
>> On Tue, 2014-03-04 at 14:05 +0800, YIP Wai Peng wrote:
>>>
>>> Dear all,
>>>
>>>
>>> I have a rbd image that I can't delete. It contains a snapshot that is
>>> "busy"
>>>
>>>
>>> # rbd --pool openstack-images rm
>>> 2383ba62-b7ab-4964-a776-fb3f3723aabe-deleted
>>>
>>> 2014-03-04 14:02:04.062099 7f340b2d5760 -1 librbd: image has snapshots
>>> - not removing
>>> Removing image: 0% complete...failed.
>>> rbd: image has snapshots - these must be deleted with 'rbd snap purge'
>>> before the image can be removed.
>>>
>>>
>>> # rbd --pool openstack-images snap purge
>>> 2383ba62-b7ab-4964-a776-fb3f3723aabe-deleted
>>> Removing all snapshots: 0% complete...failed.
>>> rbd: removing snaps failed: (16) Device or resource busy
>>> 2014-03-04 14:03:27.311437 7f1991622760 -1 librbd: removing snapshot
>>> from header failed: (16) Device or resource busy
>>
>>
>> Hi,
>>
>>    The same is happening for me.  Did you find a solution?
>>
>> Regards,
>> Jon
>
>
> Are the snapshots protected? They need to be unprotected before they
> can be deleted.
>
> Josh
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to