Re: Accidental image deletion

2013-04-10 Thread Josh Durgin

On 04/07/2013 01:31 PM, Andrey Korolyov wrote:

Hello,

Is there an existing or planned way to save an image from such thing,
except protected snapshot? Since ``rbd snap protect'' is good enough
for a small or inactive images, large ones may add significant overhead
by space or by I/O when 'locking' snapshot is present, so it would be nice
to see same functionality by the flag of ``rbd lock'' command.


When we added locking originally, we thought about adding a general
--lock flag for rbd commands on a particular image that would acquire
an exclusive lock on the image before doing anything.

Then you could do 'rbd rm --lock', and it would fail if you'd left the
imaged locked. This is easy to implement, but we haven't gotten around
to it. It's in the tracker though: http://tracker.ceph.com/issues/2586

On a related note, Wido is adding an option to prevent accidental data
loss via resize: https://github.com/ceph/ceph/pull/209

Josh
--
To unsubscribe from this list: send the line unsubscribe ceph-devel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Accidental image deletion

2013-04-07 Thread Andrey Korolyov
Hello,

Is there an existing or planned way to save an image from such thing,
except protected snapshot? Since ``rbd snap protect'' is good enough
for a small or inactive images, large ones may add significant overhead
by space or by I/O when 'locking' snapshot is present, so it would be nice
to see same functionality by the flag of ``rbd lock'' command.

Thanks!
--
To unsubscribe from this list: send the line unsubscribe ceph-devel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html