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-users

Re: [Xen-users] migrating with physical device as VBD

To: "Ross S. W. Walker" <rwalker@xxxxxxxxxxxxx>, schulze@xxxxxxxxxxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] migrating with physical device as VBD
From: "Antonio Mauriello" <antoniomau@xxxxxxxxx>
Date: Thu, 3 Apr 2008 12:48:24 +0200
Delivery-date: Thu, 03 Apr 2008 03:48:56 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=dlm4kc9WmjDn70IjkGLl5G1SudzQOCVTfOWGr/F3XDQ=; b=JfAoztYYRqcMmXJc5u1JcaIn9W46cOgUOho/mafHRArTKR0V3pHc4di+4zzUqcV1Z10/fVP1hss5NH7AC4LDNArgByeQ6I/NaVm5a9uToUivFKEEkewBVpNI6G5C6X0hvlJlTuOZyjXdynUYKnlfUORDW3oBvguavmwhnWbK7rg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=k6K7GThWYY0kmWRDKsARTvoCufLDF4pm0+2QFG/5N3+KK8b8wUTAoBUhbcrbI8pR7P9EgZUWRKXotFg6bzuMqxOuzWj9R3rU13rE7jq/DkJ84GyH7MS9urRfNoCanMECNMmlCtgZtB1B2TlsysNalireYhLq9fYv8yFUx0mW/x0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E2BB8074E5500C42984D980D4BD78EF9022A7071@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <47F149A6.5050508@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <E2BB8074E5500C42984D980D4BD78EF9022A7067@xxxxxxxxxxxxxxxxxxxxx> <47F1EFE1.7050106@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <E2BB8074E5500C42984D980D4BD78EF9022A7071@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi at all,
as Jd knows, in my thesis project I'm developing a migration feature between not shared disks.
So, when I start migration between two physical nodes, it's copied also the virtual disk file (with the config file as ConVirt migration works).
At moment the feature works but it's needs many corrections (it needs a snapsot of state and restore in destination node yet).
Basically the feature copy the virtual disk file before ConVirt migration stars, so when migrations_check starts it finds virtual disk file and doens't go in error.

Regards,
Antonio Mauriello
student at Federico II University, Napoli, Italy.


On Tue, Apr 1, 2008 at 4:58 PM, Ross S. W. Walker <rwalker@xxxxxxxxxxxxx> wrote:
Jan Schulze wrote:
> Ross S. W. Walker wrote:
> > Jan Schulze wrote:
> >> Hi all,
> >>
> >> I am wondering, whether it's possible to migrate a DomU from one XEN Host to
> >> another *without* using shared storage. All HowTos that I found so far, are
> >> using some kind of shared filesystem or block device.
> >
> > Shared storage is mandatory, but it doesn't have to be traditional multi-host
> > scsi or fiber channel, with technology like iscsi and software like drbd
> > shared storage can be done on the cheap.
> >
> >> The DomU in question is using a physical device (partition /dev/sda1) that is
> >> exported as VBD from Dom0. If migration is possible with that setup, where will
> >> the DomU end up on the target system?
> >
> > It needs to be accessible there too at the same time, thus why shared storage
> > is mandatory. Check out drbd, the latest version does primary-primary which
> > is what you need for live migrations.
>
> DRBD seems really interesting. However, when using primary-primary, I
> would also need a cluster file system. As my existing DomU uses ext3, I
> won't be able to use DRBD in a primary-primary setup, right?

No not in this case because the domUs file systems don't come into play
here. The Xen servers will have access to the domUs disks at the same
time, but they will not write at the same time. Only 1 xen host has
write access and during live migration they coordinate the hand-off
of this access along with the network and running memory.

Question is whether the drbd can work quick enough in this fashion
to have the disks in sync by the time the hand-over is complete. You
may need to up the pause state from say 50ms to 100ms just to give
drbd enough time to complete the replication.

> >> In case, migrating this DomU won't work, I would have to copy the VM manually.
> >> Is it possible to access the contents of /dev/sda1 from Dom0? Simply shutting
> >> down the DomU and mounting /dev/sda1 in Dom0 does not work.
> >
> > There will be a partition table within that partition, so you can run
> > kpartx -a /dev/sda1, and access the first partition via /dev/mapper/sda11,
> > or mount it via a loopback mount to the offset of that partition.
> >
> > # mount -t <fstype> -oloop,offset=<part offset> /dev/sda1 /mnt
>
> Thanks, did not know that. Very useful.

Always happy to pass the knowledge along as it was passed to me.

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.


_______________________________________________

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>