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] How to setup swap

To: xen-users@xxxxxxxxxxxxxxxxxxx, eduguay@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to setup swap
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Tue, 16 Aug 2005 15:28:26 +0100
Delivery-date: Tue, 16 Aug 2005 14:27:11 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4301112F.6090600@xxxxxxxx>
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: <4301112F.6090600@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8
> Any ideas ?
>
> /dev/sda1               /                       ext3    defaults 1 1
> none                    /dev/pts                devpts  gid=5,mode=620 0 0
> none                    /dev/shm                tmpfs   defaults 0 0
> none                    /proc                   proc    defaults 0 0
> none                    /sys                    sysfs   defaults 0 0
> /dev/VolGroup00/SwapVM1 swap                    swap    default  0 0

You're running LVM in dom0, not in the guest, right?  In which case, the 
volgroup won't be visible to the guest.

Instead, add another entry in you disks list (in the domain config file), 
exporting this as another block device (like you did for the root).

e.g.

disks = [ 'file:/the/root.img,sda1,w', 'phy:/dev/VolGroup00/SwapVM1,sda2,w' ]

Configure "sda2" as swap in the guest.  Note that you must *never* share a 
swap device between multiple guests, or between the guest and the host.

Cheers,
Mark

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

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