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: Ramon Moreno <rammor1@xxxxxxxxx>
Subject: Re: [Xen-users] ISCSI SAN n Local Swap n Live migration
From: Javier Guerra <javier@xxxxxxxxxxx>
Date: Thu, 19 Mar 2009 09:42:36 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 19 Mar 2009 07:43:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e2ad5f700903190216k2596910yc66c12029b05ea20@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>
References: <e2ad5f700903190216k2596910yc66c12029b05ea20@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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.

-- 
Javier

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

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