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

Fwd: [Xen-users] Using lvm for domUs

To: "Xen Users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Fwd: [Xen-users] Using lvm for domUs
From: "john maclean" <jayeola@xxxxxxxxx>
Date: Mon, 30 Apr 2007 23:06:35 +0100
Delivery-date: Mon, 30 Apr 2007 15:05:10 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kv1JbWUAhF3pZi2PpmaP9wBEz4GIQ+zYkQGH5yut0SKx+Pqq/ayPKN8u9hSTd5leOUV2NKVWYnZWq0SAAOTxlzisi+CH6vtia2NHEJlzxZttrIsBNzDG0XxDCZBX9c36WLMODMwPsAVqnrj6UuKa6/XPmtffJBgRVwX/NNxLZKk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GLMt11sTq3lEN4Ol3DESYKfy64fz6Hy2bIOVtubu/OqY3SfwUmdqYqH69iWYsrpLP1x6SvUDPdeWRaRgqBbU05HJsylZdwRDVLT+PYiP6dq0oyKTaUpY+e0iS2U9ZFBKmRcjdyNQmFmmhqhWV0kvM4TnxDIuiExnUPAhW8VVlzQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4170c1720704301500y2470f8b6u730c8c506f0c4611@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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4170c1720704301129k4cc8eac3m32395ce16c7c20ec@xxxxxxxxxxxxxx> <9C013EAF-1D9B-4087-91FF-319D9B897A46@xxxxxxxxxxxx> <4170c1720704301500y2470f8b6u730c8c506f0c4611@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Just added the full paths to the lvms. No difference made. should i also change
root = "/dev/sda1 ro" to something like
root = "xvda ro" ?

On 30/04/07, Jason Dillon <jason@xxxxxxxxxxxx> wrote:
On Apr 30, 2007, at 11:29 AM, john maclean wrote:
> Hey chaps. What's the best way to populate an lvm to get it ready
> for xen?
>
> Steps I've taken so far;
> * create file based images using another machine.
> * create physical group and volume
> * create logical volume
>
> All checks out so far...
> acid:~# lvscan
>  ACTIVE            '/dev/xenLabs/etch_lvm' [4.00 GB] inherit
>  ACTIVE            '/dev/xenLabs/etch_swap' [128.00 MB] inherit
>  ACTIVE            '/dev/xenLabs/blag_lvm0' [2.00 GB] inherit
>  ACTIVE            '/dev/xenLabs/blag_swap0' [128.00 MB] inherit
>
> So far so good.
> * mount /dev/xenLabs/etch_lvm /mnt/testing
> * mkfs.ext3 /dev/xenLabs/etch_lvm
> * mkswap /dev/xenLabs/etch_swap
> * debootstrap /dev/xenLabs/etch_lvm
>
> OK, still with me? Config file;
> cat /etc/xen/etch_lvm
> #  -*- mode: python; -*-
> kernel = "/boot/vmlinuz-2.6.16-xen"
> memory = 128
> name = "etch_lvm"
> vif = [ '' ]
> disk = [ 'phy:xenLabs/etch_lvm,sda1,w', 'phy:xenLabs/
> etch_swap,sda2,w']

You might have better luck using the full path to the /dev files here...

     disk = [ 'phy:/dev/xenLabs/etch_lmv,xvda1,w', 'phy:/dev/xenLabs/
etch_swap,xvda2,w' ]

I switched sdaN to xvdaN, though it shouldn't matter which you use.

I am using LVM on dom0 to manage domU's disks with no problems.

--jason




--
John Maclean  - 07739 171 531
MSc (DIC)


--
John Maclean  - 07739 171 531
MSc (DIC)

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

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