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

RE: [Xen-users] LVM partitions on PV domU


  • To: "Matthias Reif" <matthreif@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
  • Date: Thu, 18 Jun 2009 01:50:01 -0400
  • Cc:
  • Delivery-date: Wed, 17 Jun 2009 22:52:03 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcnvzpoySQlSqnA+T4Km/KaI37V9tQACGbIw
  • Thread-topic: [Xen-users] LVM partitions on PV domU

The CentOS installers always expect disk images to be whole disks, not
partitions, and to do their own partitioning--i.e. this isn't really a
Xen question.  You can accomplish the storage layout you're after, but
not with the native CentOS installers.

The following EC2 page has instructions for installing Fedora to a
single root filesystem, but can easily be adapted to CentOS on multiple
volumes.  The key is preparing for a successful "yum --installroot=...
Groupinstall Base":

http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/index.htm
l?ami-via-loopback.html

If you want to use multiple volumes instead of one (as in your
root/usr/var example below), create and mount each  (i.e. /mnt,
/mnt/usr, /mnt/var, etc.) before you begin your install.

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Matthias Reif
> Sent: Thursday, June 18, 2009 12:38 AM
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] LVM partitions on PV domU
> 
> Hi All,
> 
> I am trying to install a 32-bit CentOS 5 paravirtualised domU 
> based on the instructions at 
> http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU.
> 
> I would like to allocate storage to the domU as a number of 
> LVM logical volumes instead of a single disk image.
> 
> Ie.
> 
> kernel = "/domx/boot/vmlinuz-xen-install"
> ramdisk = "/domx/boot/initrd-xen-install"
> extra = "text"
> 
> [...]
> 
> disk = [ 'phy:/dev/sage/root,xvda1,w',
>         'phy:/dev/sage/usr,xvda2,w',
>         'phy:/dev/sage/swap,xvda3,w',
>         'phy:/dev/sage/tmp,xvda4,w',
>         'phy:/dev/sage/var,xvda5,w' ]
> [...]
> 
> I was hoping the logical volumes would appear as partitions 
> inside the domU, but instead the installer recognises them as 
> separate disk devices and wants me to partition each of them, 
> ie. xvda11, xvda21, etc.
> 
> Is this expected behaviour?
> 
> Is it at all possible to pass LV partitions through to the 
> domU as partitions instead of disk devices?
> 
> dom0 = CentOS 5.2 64-bit
> Xen = 3.3.1
> 
> Thank you.
> 
> Matthias
> 
> _______________________________________________
> 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


 


Rackspace

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