HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Xen: Smp & Lvm (http://www.howtoforge.com/forums/showthread.php?t=2200)

zokahn 23rd January 2006 11:18

Xen: Smp & Lvm
 
Hi,

I've tested a Xen setup on Debian 3.1 on a single CPU system. All was well, a few problems but these can be solved ;-)

However, while i'm doing the setup on a dual Xeon starten me wondering. Is the host kernel SMP capable? I really hope so!

My second question is more on Xen and LVM. On my test system I just followed the manual and created a single root (ext3) and a swap filesystem. On my definite system i want LVM as I don't really know the future growth behaviour. Now I have /boot as seperate ext3 (for grub) and the rest in a LVM array (/, /var, /tmp etc as JFS) But the Xen kernel won't boot! Has anyone tried a somethin like this? I can always pull / out of lvm and make it a ext3 outside LVM while keeping data filesystems in LVM.

So two questions: Is the Host kernel SMP capable? and Is the Host kernel LVM capable?

Kind regards,

Zokahn
www.zokahn.com

falko 23rd January 2006 18:00

Did you install Xen from the sources or from the pre-compiled binaries?

zokahn 23rd January 2006 19:09

i used sources on debian sarge. i would like to able to use lvm all the way.
looked at xen 3.0 at found that it supports smp for guests. would you choose xen 3.0 or wait for 3.1?

thanks.

falko 23rd January 2006 19:43

Quote:

Originally Posted by zokahn
i used sources on debian sarge. i would like to able to use lvm all the way.

You can have a look at the kernel's config file in boot if SMP and LVM are enabled.

Quote:

Originally Posted by zokahn
looked at xen 3.0 at found that it supports smp for guests. would you choose xen 3.0 or wait for 3.1?

I'm having some problems with Xen 3.0 and virtual networks right now. It doesn't work like described here: http://www.howtoforge.com/perfect_xe...bian_ubuntu_p6, and I'm still waiting for an answer from the Xen mailing list... :( That's why I'd stick with Xen 2.0.7 for now.

zokahn 23rd January 2006 22:37

Soooooo... You are saying that I can use VLM, even for / once ive got my kernel options sorted? I hope so.

Ill experiment with some options. Right now im installing using a lvm-less setup, only some file systems on lvm (not /boot and not /). Then ill finaly see how xen will work on my 2 xeons... Really exited, as i really love having all these enterprise toys put to good open source use :D

love your work falko, i was reading your stuff even before howtoforge... Excelent!

Gr,

Zokahn

zokahn 27th January 2006 10:28

Ive now done the setup and it works correctly...

LVM for /boot is not possible as GRUB has a problem with it. LVM for / is not possible as Xen wont load the right modules and it does not do the vgchange -a y vgscan thingies... I think it can be done by building a ramdisk (a next project ;) )
LVM for other filesystems is possible: I now have it running with only my /var and a data volume /local in LVM. This will make snapshot backups, extending filesystems en moving to new hardware easy...

SMP with Xen is kinda strange. You really get the feelling you are building a single cpu kernel as the XEN config will not show the SMP options in de CPU section. After booting from the succesfull kernel build you will not see additional CPUs in the top program.

However XEN will use ALL the processors availible for loading the virtual machines, you can even assign a CPU in the config file by setting cpu=0 or cpu=1 or cpu=#.

A SMP virtual machine is not possible in XEN 2.0. A virtual machine can only use 1 cpu. All that goodness is saved for XEN 3.0 where that is possible... However, Falko seems to have found a bug in networking with Xen 3, and i guess solving it will take its time.

:D Thanks!

Zokahn


All times are GMT +2. The time now is 11:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.