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] One Disk, multiple DomUs and Linux Swap

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] One Disk, multiple DomUs and Linux Swap
From: "Christopher G. Stach II" <cgs@xxxxxxxxx>
Date: Tue, 23 Jan 2007 09:19:06 -0200
Delivery-date: Tue, 23 Jan 2007 03:18:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45B5E562020000420000785C@xxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <45B5E562020000420000785C@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20061219)
Reinhard Brandstaedter wrote:
> Hi,
> 
> If I use one logical volume (with complete partition layout) as a
> read-only disk for multiple DomUs it works fine and I can start as many
> DomUs as I want, as long they don't write to the filesystems on that
> disk.
> 
> But what is if this logical volume contains a swap partition? The swap
> partition is also shared between multiple DomUs and needs to be
> writeable. So it can't be a partition on the logical volume.
> 
> This setup won't work for multiple DomUs then, right?
> name = "test-%d" %vmid
> memory = "128"
> disk = [ 'phy:/dev/vm/test-root,xvda,r']
> vif = [ 'mac=00:16:3e:29:ef:a8, bridge=xenbr0', ]
> nographic=1
> bootloader="/usr/bin/pygrub"
> vcpus=1
> 
> I'd have to specify an extra disk device for each DomU which contains
> the swap partition, right?
> like 'phy:/dev/vm/test-swap-%d,xvda,r' %vmid

You can export an LV as a whole disk that contains your partition table
(including a swap partition), or you can export an LV as a partition
that is dedicated to swap for a single VM.

-- 
Christopher G. Stach II


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

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