All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@inktank.com>
To: Wolfgang Hennerbichler <wolfgang.hennerbichler@risc-software.at>
Cc: ceph-devel@vger.kernel.org
Subject: Re: rename whilst in use
Date: Wed, 27 Feb 2013 14:01:32 -0800	[thread overview]
Message-ID: <512E823C.4080902@inktank.com> (raw)
In-Reply-To: <512E0347.4040009@risc-software.at>

On 02/27/2013 04:59 AM, Wolfgang Hennerbichler wrote:
> hi,
>
> I've accidently renamed a rbd object that has been in use within a
> kvm-domain.
>
> After detaching the rbd object I could rename it, but the source seems
> still to be around in space:
>
> # rbd ls -l rd | grep mysql3
> mysql3.new  12000M          2
>
> # rbd create rd/test --size 1
> # rbd rename rd/test rd/mysql3
> rbd: rename error: 2013-02-27 13:53:29.817863 7f3424ba8780 -1 librbd:
> rbd image mysql3 already exists
> (17) File exists

Since it doesn't appear in rbd ls, this suggests that the old
rbd_id.mysql3 object still exists.

> unfortunately my scrollback buffer isn't long enough to find out about
> the actual error I got during the first rename, but it should be easy to
> reproduce.

I can't reproduce it (at least not with format 2 images). Can you?
I'd expect this problem with format 1 images, since they don't separate
the header object from the name of the image.

> I assume this is a bug, that's why I posted it to ceph-devel directly.

Thanks, it certainly seems like a bug.

Josh

  reply	other threads:[~2013-02-27 22:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 12:59 rename whilst in use Wolfgang Hennerbichler
2013-02-27 22:01 ` Josh Durgin [this message]
2013-02-28  6:01   ` Wolfgang Hennerbichler
2013-02-28  8:40     ` Josh Durgin

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=512E823C.4080902@inktank.com \
    --to=josh.durgin@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=wolfgang.hennerbichler@risc-software.at \
    /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.