From: "Andrew Warfield" Subject: Re: vbd flushing during migration? Date: Mon, 31 Jul 2006 12:56:58 -0700 Message-ID: References: <44CE5C89.4070602@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44CE5C89.4070602@hp.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Byrne Cc: xen-devel List-Id: xen-devel@lists.xenproject.org It's slightly more than a flush that's required. The migration protocol needs to be extended so that execution on the target host doesn't start until all of the outstanding (i.e. issued by the backend) block requests have been either cancelled or acknowledged. This should be pretty straight forward given that the backend driver ref counts a blkif's state based on pending requests, and won't tear down the backend directory in xenstore until all the outstanding requests have cleared. All that is likely required is to have the migration code register watches on the backend vbd directories, and wait for them to disappear before giving the all-clear to the new host. We've talked about this enough to know how to fix it, but haven't had a chance to hack it up. (I think Julian has looked into the problem a bit for blktap, but not yet done a general fix.) Patches would certainly be welcome though. ;) a. On 7/31/06, John Byrne wrote: > > Hi, > > I don't see any obvious flush to disk taking place for vbd's on the > source host in XendCheckpoint.py before the domain is started on the new > host. Is there a guarantee that all written data is on disk somewhere > else or is something needed? > > Thanks, > > John Byrne > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >