From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZA0n9-0002Qx-FU for qemu-devel@nongnu.org; Tue, 30 Jun 2015 15:02:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZA0n7-0006Zr-VA for qemu-devel@nongnu.org; Tue, 30 Jun 2015 15:01:59 -0400 Date: Tue, 30 Jun 2015 20:01:47 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20150630190146.GE2142@work-vm> References: <20150618125533.GE25387@stefanha-thinkpad.redhat.com> <5582D777.8060202@gmail.com> <20150618160618.GF822@stefanha-thinkpad.redhat.com> <55836860.2010401@cn.fujitsu.com> <20150619104953.GB9807@stefanha-thinkpad.redhat.com> <5584DEA8.80005@gmail.com> <20150624140755.GC2206@work-vm> <558B52EE.3000800@cn.fujitsu.com> <20150626190335.GN2186@work-vm> <559099E5.6080205@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <559099E5.6080205@cn.fujitsu.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH COLO-Block v6 07/16] Add new block driver interface to connect/disconnect the remote target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: Kevin Wolf , Fam Zheng , Wen Congyang , qemu block , Stefan Hajnoczi , Jiang Yunhong , Dong Eddie , qemu devel , Max Reitz , Lai Jiangshan , Gonglei , Stefan Hajnoczi , Paolo Bonzini , Yang Hongyang , zhanghailiang * Wen Congyang (wency@cn.fujitsu.com) wrote: > On 06/27/2015 03:03 AM, Dr. David Alan Gilbert wrote: > > Ah, I hadn't realised you could do that; so do you just do: > >=20 > > migrate_set_parameter colo on > > migrate -d -b tcp:otherhhost:port > >=20 > > How does the secondary know to feed that data straight into the disk wi= thout > > recording all the old data into the hidden-disk ? >=20 > hidden disk and active disk will be made empty when starting block replic= ation. Hmm, yes - I think I need to update to your current world; in the version =66rom the end of May, I get a 'error while loading state for instance 0x0 = of device 'block'' if I try to use migrate -d -b=20 (the bdrv_write fails) > >> If the user uses mirror job, we don't cancel the mirror job now. > >=20 > > It would be good to get it to work with mirror, that seems preferred th= ese > > days to the old block migration. >=20 > In normal migration, is mirror job created and cancelled by libvirt? Yes, I think so; you should be able to turn on full logging on libvirt and watch the qmp commands it sends. Dave -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK