qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Live migration using qcow2


From: Kevin Wolf
Subject: Re: [Qemu-devel] Live migration using qcow2
Date: Wed, 20 Feb 2013 14:46:03 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Feb 20, 2013 at 02:14:47PM +0100, Tiziano Müller wrote:
> Am Mittwoch, den 20.02.2013, 12:20 +0100 schrieb Kevin Wolf:
> > On Wed, Feb 20, 2013 at 11:47:56AM +0100, Tiziano Müller wrote:
> > > Hi everyone
> > > 
> > > According to http://wiki.qemu.org/Migration/Storage section "Image
> > > Formats" qemu can't do live migration without data corruption when using
> > > qcow2 or qed due to the metadata caches.
> > > Wasn't that fixed by commit 06d9260 ?
> > 
> > Yes, it is fixed. Depending on your backend, you still need
> > cache=none/directsync, of course.
> 
> Thanks for the fast reply. Can you please elaborate on that (or post a
> link to an explanation): What exactly does the backend have to provide
> that for example cache=writeback can be used? Is there a way to test for
> it?

The problem is about cache coherency. Local files work just fine with
cache=writeback, but if you migrate to a different host, you get the
problem that the destination kernel may cache some parts of the image
while the source is still writing to it. When you do the actual switch
to the destination host and the backend doesn't take care of
invalidating that cache, you might (partially) read outdated data.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]