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: Thu, 28 Feb 2013 00:40:18 -0800 [thread overview]
Message-ID: <512F17F2.4030304@inktank.com> (raw)
In-Reply-To: <512EF29E.9050802@risc-software.at>
On 02/27/2013 10:01 PM, Wolfgang Hennerbichler wrote:
> On 02/27/2013 11:01 PM, Josh Durgin wrote:
>
>> Since it doesn't appear in rbd ls, this suggests that the old
>> rbd_id.mysql3 object still exists.
>
> Yes. Is there a way I can safely delete it?
>
> rados ls -p rd | grep mysql | less
> mysql3.rbd
> rbd_id.mysql3.new
>
> => here it is (and yes, it's format==1). can I just say rados rm ...
> without having to fear that everything breaks down?
If you've just had this problem with a format 1 image, you can safely
rados rm the old header (oldname.rbd). It's the only thing that wouldn't
be cleaned up by a rename while it's in use.
>>> 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 currently only have this production system to play, so I can't really
> try. but you're right, it's a format 1 image. (that was the use case, I
> tried to "convert" a format 1 image to a format 2 image by creating the
> .new and copying stuff over)
>
>> I'd expect this problem with format 1 images, since they don't separate
>> the header object from the name of the image.
>
> so true. :)
>
>> Thanks, it certainly seems like a bug.
>
> as it's a format==1 bug, maybe it's of less importance. so: is rados rm
> mysql3.rbd a good idea? :)
If mysql3 is the old name of the image that was renamed while in use,
yes.
>> Josh
>
> Wolfgang
>
> PS: I didn't receive mails (even not your reply) on the mailing-list for
> about 12 hours, did your mailserver break? Is your mailserver backed by
> ceph-fs? :)
Not yet :) I'm not sure why that happened, I didn't notice any issues
with vger or my other emails today.
prev parent reply other threads:[~2013-02-28 8:39 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
2013-02-28 6:01 ` Wolfgang Hennerbichler
2013-02-28 8:40 ` 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=512F17F2.4030304@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.