From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNVit-0001gp-9A for qemu-devel@nongnu.org; Sun, 24 Jan 2016 20:13:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNVis-0000Vh-Co for qemu-devel@nongnu.org; Sun, 24 Jan 2016 20:13:39 -0500 References: <1451035376-7252-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1451035376-7252-3-git-send-email-xiecl.fnst@cn.fujitsu.com> <56A03A42.7060802@cn.fujitsu.com> <56A10E42.5040500@redhat.com> <20160122200209.GA18933@work-vm> From: Wen Congyang Message-ID: <56A576D6.7070302@cn.fujitsu.com> Date: Mon, 25 Jan 2016 09:13:58 +0800 MIME-Version: 1.0 In-Reply-To: <20160122200209.GA18933@work-vm> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v9 2/3] quorum: implement bdrv_add_child() and bdrv_del_child() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" , Alberto Garcia Cc: Kevin Wolf , Changlong Xie , zhanghailiang , qemu block , Jiang Yunhong , Dong Eddie , qemu devel , Markus Armbruster , Gonglei , Stefan Hajnoczi On 01/23/2016 04:02 AM, Dr. David Alan Gilbert wrote: > * Alberto Garcia (berto@igalia.com) wrote: >> On Thu 21 Jan 2016 05:58:42 PM CET, Eric Blake wrote: >>>>>> In general, what do you do to make sure that the data in a new Quorum >>>>>> child is consistent with that of the rest of the array? >>>>> >>>>> Quorum can have more than one child when it starts. But we don't do >>>>> the similar check. So I don't think we should do such check here. >>>> >>>> Yes, but when you start a VM you can verify in advance that all >>>> members of the Quorum have the same data. If you do that on a running >>>> VM how can you know if the new disk is consistent with the others? >>> >>> User error if it is not. Just the same as it is user error if you >>> request a shallow drive-mirror but the destination is not the same >>> contents as the backing file. I don't think qemu has to protect us >>> from user error in this case. >> >> But the backing file is read-only so the user can guarantee that the >> destination has the same data before the shallow mirror. How do you do >> that in this case? > > I think in the colo case they're relying on doing a block migrate > to synchronise the remote disk prior to switching into colo mode. Yes, we can do a block migration to sync the disk. After the migration finished, we stop block migration before starting colo. Thanks Wen Congyang > > Dave > >> Berto > -- > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK > > > . >