|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] ISCSI SAN n Local Swap n Live migration
On Thursday 19 March 2009 15:42:36 Javier Guerra wrote:
> On Thu, Mar 19, 2009 at 4:16 AM, Ramon Moreno <rammor1@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx http://www.mpifr-bonn.mpg.de
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|