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] Using lvm for domUs

To: john maclean <jayeola@xxxxxxxxx>
Subject: Re: [Xen-users] Using lvm for domUs
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Mon, 30 Apr 2007 20:10:35 +0100
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 30 Apr 2007 12:09:15 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bOCwyD03g5+LCoaz8nHtOrNH7MLpJtXWWcta6hWeEV2GzGOgGLYbEIEnUuG/RBIhG6xxbTssd9vs3UjUDxR06s+jr12kvHEXftGkvwWPXSVXYIzg/Xsj09tkRERcaLhs3sal7xdx2SlYbni6F9y6QoZBZJ4JHS6KEsHWKSTqa/Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=RwquI15F4bVy42xPYsvW6YtZ2h5q3RI1DDzItz+pJl5wHsyOa/BwXfYXu09cFI5ZbqjTx5bjdUj+MzyPd2i1vNuISWJrinvl069UqM8CGQm4bv8XiAxUPBsWkDfy1kn9SQ7Fy5JY0dTyTWu7lrKvn40tuK6tdfTU/7YxGfnjp4M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4170c1720704301129k4cc8eac3m32395ce16c7c20ec@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)
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']
dhcp="dhcp"
hostname= "etch_lvm"
root = "/dev/sda1 ro"
extra = "4"
vnc= 'yes'

xm start etch_lvm => backend device not found. Am I missing something?
Perhaps I'm not using dd correctly to fill up the lvm. wrong switches
used for cp perhaps?

tried dd /path/to/image /path/to/lvm
cp -dpR /path/to/image /path/to/lvm

xen-3.0.4-1

First: unless you have really compelling need, do *NOT* use lvm inside of Xen guests. Seriously, you're just adding another layer of management and configuration problems you don't need. Keep your LVM work in Dom0.

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

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