[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Do I need to specify swap parition for domU?
specify the swap LV just like you did the root LV. As far as your guest knows, its a disk or partition just like another other LV you export. Then once you are in the DomU, add a swap line pointing to that disk in your /etc/fstab ie /dev/hda2 swap swap defaults 0 0 then just mkswap /dev/hda2 swapon -a Liang Yang wrote: Hi Tim,Thank you for your reply. However, I would like to use logic volumes directly instead of using file backed disk partition for swap partition. For example, I created two logic volumes, LogVol00 is reserved as the swap partition for domU (1GB)(I copied the whole RedHat filesystem to LogVol01 as the / for domU). But I don't know how to specify LogVol00 in xen config file as the swap partition for domU.Could you shed more lights on this issue? Thanks, Liang ----- Original Message ----- From: "Tim Wood" <twwood@xxxxxxxxx> To: "Liang Yang" <multisyncfe991@xxxxxxxxxxx> Cc: <xen-users@xxxxxxxxxxxxxxxxxxx> Sent: Thursday, September 07, 2006 11:58 AM Subject: Re: [Xen-users] Do I need to specify swap parition for domU?You don't need to setup a swap partition, but it is generally a good idea.If you are using file backed disk partitions, you can create one like so:dd if=/dev/zero of=vmSwapFile bs=1k seek=512k count=1 mkswap vmSwapFile That will make a 512 MB swap file named "vmSwapFile" On 9/7/06, Liang Yang <multisyncfe991@xxxxxxxxxxx> wrote:Hi,I just have a question about setting up domU, except the filesystem, do Ineed to create a swap partition for the domU? How to do it? Thanks, Liang _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |