[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Disk Partitioning Questions....


  • From: Thomas Goirand <thomas@xxxxxxxxxx>
  • Date: Sat, 07 Mar 2009 05:28:10 +0800
  • Cc: xen <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 06 Mar 2009 13:29:59 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=goirand.fr; h=message-id:date:from:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=postfix; b= BtgS7Su8g2VPkuKkz9dGbucowDnBt8oWmeFxYMviZt5ngCLJ39L9TWA+o1CRZ08c J8fSoCyDLO4vIeRs3rVJVk1ynE06XMtA4AKeCRmw9IzBc9wAnyY7lY3U3ygVnNzF Kyy9BiJxiq3LqKpVnjSClDUwg8IPqDnC0z2erIsE/ls=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Openpgp: id=98EF9A49

Phillip Roberts wrote:
> I am working on starting Virtural Servers at my office and have questions 
> regarding disk partitioning recommendations.
> 
> I am using SLES 10 SP2.....  RAID 5....  280G available...  no external 
> storage...
> 
> 1 - Should the DOM be on primary partition and then place the VM's in LVM?

Yes, that would work. However, I found useful to also have most of the
partitions of the dom0 in LVM. I have /var, /tmp, /usr and swap in LVM
as well in all of my dom0.

> 2 - Should I create partitions in the LVM for each of my VM's separately or 
> can they all reside on the same partition in the LVM Volume?

Please use the good terminology, this is quite hard to understand what
you want to ask. Here are few definitions:

volume group (VG): the big device that can be an aggregation of multiple
physical partition, that you will slice is logical volumes

logical volume (LV): small partitions that made out of segments (PE) of
a VG.

What yo should do is create at least one LV for each of your VM. What I
often do is one LV for one partition, and one LV for the swap. Then this
makes it like this on my domU startup file:

disk = [
'phy:/dev/mapper/vg0-xen01,sda1,w','phy:/dev/mapper/vg0-xen01swap,sda2,w' ]

As a side note, in my example the volume group is called vg0, but it's
quite useful to use a name that you will NOT find anywhere else in your
servers, otherwise you can have a conflict if you take a HDD from one
server and put it in another server for doing maintenance. This happened
to me, and since then, I always prefix the name of the vg by the
hostname. That makes it something like node2349vg0.

Thomas

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.