Has anyone perfected this? :-) End goal - Have my domUs on ISCSI Point to swap files on local disk Be able to perform live migrations. Problem seems a little challenging, but wondering if anyone has this working, and is willing to share.. :-) Thanks in advance. Also I am using CentOS 5.2. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Javier Guerra
2009-Mar-19 14:42 UTC
Re: [Xen-users] ISCSI SAN n Local Swap n Live migration
On Thu, Mar 19, 2009 at 4:16 AM, Ramon Moreno <rammor1@gmail.com> wrote:> Has anyone perfected this? :-) > > End goal - > > Have my domUs on ISCSI > Point to swap files on local disk > Be able to perform live migrations.hum... you could move swap temporarily to shared block device, while migrating, and back to local device on the new box: before: - storage: on shared block devices (as /dev/xda) - swap: on local device (/dev/xdb) - one extra unused volume on shared block device (/dev/xdd) to migrate: - mkswap /dev/xdd - swapon /dev/xdd - swapoff /dev/xdb (slow...) - detach /dev/xdb from DomU --- migrate - attach /dev/xdb to DomU - mkswap /dev/xdb - swapon /dev/xdb - swapoff /dev/xdd (slow...) you could skip the mkswap steps if you''re reusing the partitions, but it''s usually quite fast. -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thursday 19 March 2009 15:42:36 Javier Guerra wrote:> On Thu, Mar 19, 2009 at 4:16 AM, Ramon Moreno <rammor1@gmail.com> wrote: > > Has anyone perfected this? :-) > > > > End goal - > > > > Have my domUs on ISCSI > > Point to swap files on local disk > > Be able to perform live migrations. > > hum... you could move swap temporarily to shared block device, while > migrating, and back to local device on the new box: > > before: > - storage: on shared block devices (as /dev/xda) > - swap: on local device (/dev/xdb) > - one extra unused volume on shared block device (/dev/xdd) > > to migrate: > - mkswap /dev/xdd > - swapon /dev/xdd > - swapoff /dev/xdb (slow...) > - detach /dev/xdb from DomU > --- migrate > - attach /dev/xdb to DomU > - mkswap /dev/xdb > - swapon /dev/xdb > - swapoff /dev/xdd (slow...) > > you could skip the mkswap steps if you''re reusing the partitions, but > it''s usually quite fast.Hi, I''d suggest to quit swapping all together during migration. I.e. swapoff -a before migration and swapon after migration, providing you have appropriate swapspace everywhere. Cheers Jan -- Jan Behrend Max-Planck-Institut fuer Radioastronomie Abteilung fuer Infrarot-Technologie Auf dem Huegel 69, D-53121 Bonn (Germany) Tel: (+49) 228 525 319, Fax: (+49) 228 525 411 jbehrend@mpifr-bonn.mpg.de http://www.mpifr-bonn.mpg.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users