All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@inktank.com>
To: Andrey Korolyov <andrey@xdel.ru>
Cc: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: Accidental image deletion
Date: Wed, 10 Apr 2013 17:43:06 -0700	[thread overview]
Message-ID: <5166071A.7040409@inktank.com> (raw)
In-Reply-To: <CABYiri8Y4yK+H_fb9Pm_GNrfCJbzEeFyhT8WEwawc0MBMUBB2w@mail.gmail.com>

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

      reply	other threads:[~2013-04-11  0:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 20:31 Accidental image deletion Andrey Korolyov
2013-04-11  0:43 ` Josh Durgin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5166071A.7040409@inktank.com \
    --to=josh.durgin@inktank.com \
    --cc=andrey@xdel.ru \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.