This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


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

To: "Matthias Reif" <matthreif@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] LVM partitions on PV domU
From: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
Date: Thu, 18 Jun 2009 01:50:01 -0400
Delivery-date: Wed, 17 Jun 2009 22:52:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <33aead550906172138m97ec939j69ad5a95e7f02f4f@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <33aead550906172138m97ec939j69ad5a95e7f02f4f@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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":


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

<Prev in Thread] Current Thread [Next in Thread>