|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] One Disk, multiple DomUs and Linux Swap
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
|
|
|
|
|