From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlZRw-000144-2k for qemu-devel@nongnu.org; Fri, 24 Apr 2015 04:59:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlZRv-0005Bg-7o for qemu-devel@nongnu.org; Fri, 24 Apr 2015 04:59:04 -0400 Date: Fri, 24 Apr 2015 09:58:42 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20150424085841.GC2139@work-vm> References: <20150423113631.GH5289@noname.redhat.com> <5538DD52.3020101@redhat.com> <20150423120533.GF2177@work-vm> <5538E174.9020201@redhat.com> <20150423121953.GG2177@work-vm> <5538E459.5030801@redhat.com> <20150424020149.GL2723@ad.nay.redhat.com> <5539A78D.1020206@cn.fujitsu.com> <5539F4F6.10507@redhat.com> <5539F702.7040708@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5539F702.7040708@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH COLO v3 01/14] docs: block replication's description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: Kevin Wolf , Fam Zheng , Lai Jiangshan , qemu block , armbru@redhat.com, jcody@redhat.com, Jiang Yunhong , Dong Eddie , qemu devel , Max Reitz , Gonglei , Stefan Hajnoczi , Paolo Bonzini , Yang Hongyang , zhanghailiang * Wen Congyang (wency@cn.fujitsu.com) wrote: > On 04/24/2015 03:47 PM, Paolo Bonzini wrote: > > > > > > On 24/04/2015 04:16, Wen Congyang wrote: > >>>>>> I think the primary shouldn't do any I/O after failover (and the > >>>>>> secondary should close the NBD server) so it is probably okay to ignore > >>>>>> the removal for now. Inserting the filter dynamically is probably > >>>>>> needed though. > >>>> > >>>> Or maybe just enabling/disabling? > >> Hmm, after failover, the secondary qemu should become primary qemu, but we don't > >> know the nbd server's IP/port when we execute the secondary qemu. So we need > >> to inserting nbd client dynamically after failover. > > > > True, but secondary->primary switch is already not supported in v3. > > Yes, we should consider it, and support it more easily later. > > If we can add a filter dynamically, we can add a filter that's file is nbd > dynamically after secondary qemu's nbd server is ready. In this case, I think > there is no need to touch nbd client. Yes, I think maybe the harder part is getting a copy of the current disk contents to the new secondary while the new primary is still running. Dave > > Thanks > Wen Congyang > > > > > Kevin/Stefan, is there a design document somewhere that covers at least > > static filters? > > > > Paolo > > . > > > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK