Hi guys. DomU config disk = [ ''phy:/dev/xen00/debian5-base,sda1,w'', ''phy:/dev/xen00/debian5-swap,sda2,w'', ] ----------------------- mkswap /dev/xen00/debian5-swap But in domU in booting: Activating swap...failed. What wrong? -- Best Regards, alex.faq8@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Aug 20, 2009 at 3:17 PM, Andrey Varsavsky<alex.faq8@gmail.com> wrote:> Hi guys. > DomU config > > disk = [ > ''phy:/dev/xen00/debian5-base,sda1,w'', > ''phy:/dev/xen00/debian5-swap,sda2,w'', > ] > ----------------------- > mkswap /dev/xen00/debian5-swap > > But in domU in booting: > Activating swap...failed.What is your domU fstab like? does it say swap on sda2? Or perhaps you use newer kernels, which silently convert the disk to xvda2? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I think about swapless domUs - in conjunction with Xen+drbd installation. Swapless DomU - could be easier administrated but, maybe higher CPU requirements don''t balance advantages. Are there any rules or best practice about swapless VMs? regards Longina -- Longina Przybyszewska, system programmer IT@Naturvidenskab IMADA, Department of Mathematics and Computer Science University of Southern Denmark, Odense Campusvej 55,DK-5230 Odense M, Denmark tel: +45 6550 2359 - http://www.imada.sdu.dk email: longina@imada.sdu.dk -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I don''t think you can mount a swapfile as a physical disk like that. You''ll need to create a partition structure in the file, and set the partition as swap.>From Dom0:# losetup -f /dev/xen00/debian5-swap # fdisk /dev/loop0 (or whatever loop device it creates; check with losetup -a) (create your swap partition) # kpartx -av /dev/loop0 # mkswap /dev/mapper/loop0p1 # kpartx -d /dev/loop0 # losetup -d /dev/loop0 Or you can do a lot of this work natively from the DomU OS. Cheers, -Dustin On Thu, Aug 20, 2009 at 5:00 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Thu, Aug 20, 2009 at 3:17 PM, Andrey Varsavsky<alex.faq8@gmail.com> > wrote: > > Hi guys. > > DomU config > > > > disk = [ > > ''phy:/dev/xen00/debian5-base,sda1,w'', > > ''phy:/dev/xen00/debian5-swap,sda2,w'', > > ] > > ----------------------- > > mkswap /dev/xen00/debian5-swap > > > > But in domU in booting: > > Activating swap...failed. > > What is your domU fstab like? does it say swap on sda2? > Or perhaps you use newer kernels, which silently convert the disk to xvda2? > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users