This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] vbd flushing during migration?

To: "John Byrne" <john.l.byrne@xxxxxx>
Subject: Re: [Xen-devel] vbd flushing during migration?
From: "Andrew Warfield" <andrew.warfield@xxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 12:56:58 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 31 Jul 2006 12:57:29 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=FRYU3cruS7ZZtjg0qzszjdmKFN+kyDa+ALFisVYzjSxqAnuX3/Wx0FgqbQBLBm1Cc2V/DzVm9+fxUMFsOoFb+zu6OCyR52ZaK6VzrKOvkIwca4bNO5lUjn5QJtu4CFADzc1sseWbDgBi0AqTRr3cMWMo614dsVhDn7Snkp1gGNU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44CE5C89.4070602@xxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <44CE5C89.4070602@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

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. ;)


On 7/31/06, John Byrne <john.l.byrne@xxxxxx> wrote:


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?


John Byrne

Xen-devel mailing list

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>