From: James Harper Subject: RE: disks under migration Date: Fri, 20 Aug 2004 13:11:29 +1000 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <309939D5-7944-4B81-A623-04D77F0ABD30@mimectl> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_BE99D0BC-AFEF-402D-8F10-DC61A7A5E766_" Return-path: In-Reply-To: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: David Becker Cc: xen-devel@lists.sourceforge.net, Ian.Pratt@cl.cam.ac.uk List-Id: xen-devel@lists.xenproject.org --_BE99D0BC-AFEF-402D-8F10-DC61A7A5E766_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Lots of questions here... On the subject of network block devices (iSCSI, NBD, ENBD & GNBD), do you h= ave any recommendations? How should it be set up for migration purposes? Should dom0 be the initiato= r and export it to the other domains, or should each domain be the client d= irectly? I'd expect the latter but am unfamiliar with how migration should = work. Assuming the latter, are any of the nbd technologies available bootable wit= hout using initrd's? I don't have any particular problem with initrd, but i= t's just an extra thing to set up... How does swap work over the nbd's? Is there any way of providing high availability with any nbd devices, so th= at if one target goes down it can seamlessly failover to another? Maybe rai= d1 over iSCSI? A really nice xen setup would be: Machine A hosting iSCSI devices Machine B hosting iSCSI devices Machine C hosting xen domains Machine D hosting xen domains Raid1 over iSCSI would ensure that one of A or B could be down without affe= cting availability. Xen domains can wander between C & D easily using migration. A & C could be the same physical machine, as could B & D. lots of possibilities... wish I had time to play with them all... James From: Ian Pratt Sent: Fri 20/08/2004 4:16 AM To: David Becker Cc: xen-devel@lists.sourceforge.net; Ian.Pratt@cl.cam.ac.uk Subject: Re: [Xen-devel] disks under migration > How does live (or normal) migration handle the disks involved? > Are they transfered, or does the xfrd keep some sort of channel open? xend currently doesn't give you any help and do this automatically, but its something we might add in the future. For most of our VMs we either use NFS root to a central server, or iscsi direct to a SAN, so there's no block device as such to migrate.[*] If you do want to access back to a local drive, then you'll need to set this up yourself. There are a bunch of network block device options available, all of which should work: iscsi, NBD, ENBD, GNBD.=20 We could add the equivalent of the vif-bridge script to xend for block devices. This would provide simple hooks to enable the block device export/import to be set up. However, chances are we'd want this to be stateful and smarter, so its probably best to do a xend plugin rather than just use scripts.=20 =20 > And I assume a saved domain that is restored on another host must have > all its disk and swap space transfered to the new host as well, correct? Yep. No auto magic, not yet ;-) Ian [*] Even using iscsi, there are some situations where you'd prefer to have the iscsi driver in domain 0 and export the disk as a block device to other domains. For example, if you have a hardware iscsi initiator in the machine. In this instance, you'd prefer to move the iscsi disk as part of the migrate.=20 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel --_BE99D0BC-AFEF-402D-8F10-DC61A7A5E766_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Lots of question= s here...
 
On the subject o= f network block devices (iSCSI, NBD, ENBD & GNBD), do you have any reco= mmendations?
 
How should it be set up for migr= ation purposes? Should dom0 be the initiator and export it to the other dom= ains, or should each domain be the client directly? I'd expect the latter b= ut am unfamiliar with how migration should work.
 
Assuming the latter, are an= y of the nbd technologies available bootable without using initrd's? I don'= t have any particular problem with initrd, but it's just an extra thing to = set up...
 
How does swap work over the nbd'= s?
 
Is there any way of providing hi= gh availability with any nbd devices, so that if one target goes down it ca= n seamlessly failover to another? Maybe raid1 over iSCSI? A really nice xen= setup would be:
Machine A hosting iSCSI devices<= /FONT>
Machine B hosting iSCSI devices<= /FONT>
Machine C hosting xen domains
Machine D hosting xen domains
 
Raid1 over iSCSI would ensure th= at one of A or B could be down without affecting availability.
Xen domains can wander between C= & D easily using migration.
A & C could be the same= physical machine, as could B & D.
 
lots of possibilities... wish I = had time to play with them all...
 
James


From: Ian Pratt
Sent: Fri 20/= 08/2004 4:16 AM
To: David Becker
Cc: xen-devel@lists.so= urceforge.net; Ian.Pratt@cl.cam.ac.uk
Subject: Re: [Xen-devel] di= sks under migration

> How does live (or normal) mi=
gration handle the disks involved?
> Are they transfered, or does the xfrd keep some sort of channel open?

xend currently doesn't give you any help and do this
automatically, but its something we might add in the future.

For most of our VMs we either use NFS root to a central server,
or iscsi direct to a SAN, so there's no block device as such to
migrate.[*]

If you do want to access back to a local drive, then you'll need
to set this up yourself. There are a bunch of network block
device options available, all of which should work: iscsi, NBD,
ENBD, GNBD.=20

We could add the equivalent of the vif-bridge script to xend for
block devices. This would provide simple hooks to enable the
block device export/import to be set up.  However, chances are
we'd want this to be stateful and smarter, so its probably best
to do a xend plugin rather than just use scripts.=20
=20
> And I assume a saved domain that is restored on another host must have
> all its disk and swap space transfered to the new host as well, correc=
t?

Yep. No auto magic, not yet ;-)

Ian

[*] Even using iscsi, there are some situations where you'd
prefer to have the iscsi driver in domain 0 and export the disk
as a block device to other domains. For example, if you have a
hardware iscsi initiator in the machine. In this instance, you'd
prefer to move the iscsi disk as part of the migrate.=20


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
--_BE99D0BC-AFEF-402D-8F10-DC61A7A5E766_-- ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285