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] ISCSI SAN n Local Swap n Live migration

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] ISCSI SAN n Local Swap n Live migration
From: Jan Behrend <jbehrend@xxxxxxxxxxxxxxxxx>
Date: Fri, 20 Mar 2009 18:46:56 +0100
Delivery-date: Fri, 20 Mar 2009 10:48:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <90eb1dc70903190742j686bb155vbd4197488d6ad4db@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Max-Planck-Institut für Radioastronomie
References: <e2ad5f700903190216k2596910yc66c12029b05ea20@xxxxxxxxxxxxxx> <90eb1dc70903190742j686bb155vbd4197488d6ad4db@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
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

<Prev in Thread] Current Thread [Next in Thread>