From: Jacob Gorm Hansen Subject: Re: Migration of block devices Date: Fri, 04 Aug 2006 00:09:25 -0700 Message-ID: <1154675365.19680.51.camel@localhost.localdomain> References: <1154610511.26486.43.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1154610511.26486.43.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rob Bradford Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 2006-08-03 at 15:08 +0200, Rob Bradford wrote: > One approach to achieve this I have heard mentioned is to proxy the > local interactions with the backing block device through a degraded > RAID1 array (using software RAID). The destination server then exports > its local destination block device (e.g. loopback file or LVM) via NBD > (network block device). This block device is hot added to the degraded > array and the data is synced from the original block device to the > destination. When the domain is migrated (using xm migrate) it can then > use the local block device from that point on. In order to allow future > migration from this point on the virtual machine must still access the > block device here via a proxying degraded RAID1 array. > > Has anyone successfully done this? My initial attempts seem to show that > it should work in practise but I experienced some problems with > corrupted metadata in the filesystem. Yes I have, but that was a couple of years ago, using self-migration. It worked well back then, except, as you describe, that I had no way of 'hotswapping' from iSCSI to the local Xen-backed version of the disk device. Also, my minimized boot loader did not have disk access, so I had to rely on an external domain providing the iSCSI service. Jacob