WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] live migration with DRBD devices

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] live migration with DRBD devices
From: Michael Paesold <mpaesold@xxxxxx>
Date: Tue, 25 Oct 2005 19:46:39 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Michael Mey <michael.mey@xxxxxx>
Delivery-date: Tue, 25 Oct 2005 17:43:39 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200510251549.06207.mark.williamson@xxxxxxxxxxxx>
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: <200510251448.55399.michael.mey@xxxxxx> <200510251549.06207.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Mark Williamson wrote:
I want to do live migration of domains using DRBD block devices for
synchronisation between the two Xen hosts with Xen 2.0.7.

I've written a script ( block-drbd ) which binds / unbinds DRBD devices for
specific domains (with DRBD, only one host can write on a drbd device at
the same time). This script sets the current host as master (bind) or
secondary (unbind) in a DRBD "Netword-RAID"


Yep - btw this is fixed with DRBD 8 (still in development), which supports multiple writers.

How are you handling the sequencing here, though? Move the device to the new host at *unbind* time from the origin? I'm thinking that the DRBD script will get run at the destination whilst the origin domain is still running and using its disk...

Correct.

And it cannot work with drbd 0.7 currently without hacking Xen to change block device setup. What would be needed is that Xen should open the new block device read-only (there is a hack in drbd 0.7 that would allow this) and only when the source domain is shutdown reopen the block device r/w.

Xen want's to open the block device rw as soon as it does the setup of the destination domain. This may work currectly with drbd 0.8 since it supports multi-master.

I have done testing with the current development trunk of drbd some time ago. It did not work for me. Migration crashed the guest.

Best Regards,
Michael Paesold

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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