From: Josh Durgin <josh.durgin@inktank.com>
To: Gregory Farnum <greg@inktank.com>
Cc: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>,
ceph-devel@vger.kernel.org
Subject: Re: Ceph and KVM live migration
Date: Mon, 02 Jul 2012 12:00:29 -0700 [thread overview]
Message-ID: <4FF1EFCD.9060604@inktank.com> (raw)
In-Reply-To: <CAPYLRzjWRwvud8cNKHE5X7bbTQL8ZjdxPdy=1gJ=pWp_brnX+g@mail.gmail.com>
On 07/02/2012 11:21 AM, Gregory Farnum wrote:
> On Sat, Jun 30, 2012 at 8:21 PM, Vladimir Bashkirtsev
> <vladimir@bashkirtsev.com> wrote:
>> On 01/07/12 11:59, Josh Durgin wrote:
>>>
>>> On 06/30/2012 07:15 PM, Vladimir Bashkirtsev wrote:
>>>>
>>>> On 01/07/12 10:47, Josh Durgin wrote:
>>>>>
>>>>> On 06/30/2012 05:42 PM, Vladimir Bashkirtsev wrote:
>>>>>>
>>>>>> Dear all,
>>>>>>
>>>>>> Currently I testing KVMs running on ceph and particularly testing
>>>>>> recent
>>>>>> cache feature. Performance is of course vastly improved but still have
>>>>>> occasional KVM hold ups - not sure who is at blame ceph of KVM. But I
>>>>>> will deal with it later. Right now I've got myself a question which I
>>>>>> could not get answered myself: if I do live migration of KVM while
>>>>>> there
>>>>>> some uncommitted data in ceph cache will this cache be committed prior
>>>>>> cut-over to another host? Reading through the list I've got an
>>>>>> impression that it may be left uncommitted and thus it may cause data
>>>>>> corruption. I just would like a simple confirmation if code which
>>>>>> commits cache on cut-over to new host does exist and no data corruption
>>>>>> due to RBD cache+live migration should happen.
>>>>>>
>>>>>> Regards,
>>>>>> Vladimir
>>>>>
>>>>>
>>>>> QEMU does a flush on all the disks when it stops the guest on the
>>>>> original host, so there will be no uncommitted data in the cache.
>>>>>
>>>>> Josh
>>>>
>>>> Thank you for quick and precise answer. Now when I actually attempted to
>>>> live migrate ceph based VM I get:
>>>>
>>>> Unable to migrate guest: Invalid relative path
>>>> 'rbd/mail.logics.net.au:rbd_cache=true': Invalid argument
>>>>
>>>> I guess KVM does not like having :rbd_cache=true (migration works
>>>> without it). I know that it is most likely KVM problem but still decided
>>>> to ask here in case if you know about it. Any ideas how to fix it?
>>>>
>>>> Regards,
>>>> Vladimir
>>>
>>>
>>> Is the destination librbd older and not supporting the cache option?
>>>
>>> Migrating with rbd_cache=true and other options specified like that
>>> worked in my testing.
>>>
>>> Josh
>>
>> Both installations are the same:
>> qemu 1.0.17
>> ceph 0.47.3
>> libvirt 0.9.12
>>
>> I have googled around and found that if I call migration with --unsafe
>> option then it should go. And indeed: it works. Apparently this check
>> introduced in libvirt 0.9.12 . Did quick downgrade to libvirt 0.9.11 and no
>> problems migrating.
>
> Have we checked if the live migrate actually does do the cache flushes
> when you use the unsafe flag? That worries me a little!
The unsafe flag is purely a libvirt mechanism for bypassing libvirt's
format whitelist. It does not affect qemu at all.
> In either case, I created a bug so we can try and make QEMU play nice:
> http://tracker.newdream.net/issues/2685
The issue is with libvirt, not qemu. I sent a patch fixing it to the
libvirt list:
http://www.redhat.com/archives/libvir-list/2012-July/msg00021.html
Josh
next prev parent reply other threads:[~2012-07-02 19:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-01 0:42 Ceph and KVM live migration Vladimir Bashkirtsev
2012-07-01 1:17 ` Josh Durgin
2012-07-01 2:15 ` Vladimir Bashkirtsev
2012-07-01 2:29 ` Josh Durgin
2012-07-01 3:21 ` Vladimir Bashkirtsev
2012-07-02 18:21 ` Gregory Farnum
2012-07-02 19:00 ` Josh Durgin [this message]
2012-07-02 19:02 ` Christian Brunner
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=4FF1EFCD.9060604@inktank.com \
--to=josh.durgin@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=greg@inktank.com \
--cc=vladimir@bashkirtsev.com \
/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.