WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] LVM partitions on PV domU
From: "Alan Lam" <alan@xxxxxxxxxxxxxx>
Date: Wed, 17 Jun 2009 21:42:12 -0700
Delivery-date: Wed, 17 Jun 2009 21:43:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Hi,

 

You can pass a LVM partition (one) to the DomU as a disk (as you have discovered). Then you can let the DomU partition it.

 

If you have a need to access the partitions of the DomU, in Dom0, then you can make use of kpartx to access them.

 

Regards,

Alan

 

-----Original Message-----
From: Matthias Reif [mailto:matthreif@xxxxxxxxx]
Sent: Thursday, 18 June 2009 2:38 PM
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
<Prev in Thread] Current Thread [Next in Thread>