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] Mounting Xen LVM Guests

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Mounting Xen LVM Guests
From: Eredicator X <eredicatorx@xxxxxxxxxxxxxxx>
Date: Wed, 7 Jan 2009 17:26:24 +0900 (JST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 Jan 2009 00:27:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <496464AD.40104@xxxxxxxxx>
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
Thanks Fajar,

----- "Fajar A. Nugraha" <fajar@xxxxxxxxx> wrote:

> I don't think that's true.
> When using virt-install, the LV will be treated as a whole disk. Thus
> it
> may have partitions, or even PV/LV inside it.

Yes it does and that is what I was using kpart for.


> CentOS (as is RedHat) uses LVM inside guests by default. If you let
> it
> like that, then mounting domU filesystem in dom0 is going to be a
> pain.
> Not impossible, but certainly not easy.
> 
Yes agreed. 

> I'd actually suggest one of the followings :
> - startup domU, setup nfs, have dom0 mount domU's share, or
> - reinstall domU with virt-install, choose partitioning setup (not
> LVM)
> on domU, or

These are just test machines so reinstalling is not a issue. 
My true end goal is to clone a guest, make a script that mounts it changes some 
parameters like IP and Users etc. Unmounts it and starts it. Simple down and 
dirty provisioning. 

Simple goal. Painful execution.  

> - reinstall domU WITHOUT virt-install, use LVS on dom0 directly as
> filesystem on domU (e.g. no more partioning or LVM on domU). This is
> not
> possible using anaconda, thus have to be done manually. 

Not sure I follow you on this one. 

> - learn how to use kpartx, pvscan, and vgscan, and hope you don't
> have
> conflicting VG names.
> 

This is what I am currently trying to do. 


Thanks in advance, 


Erin


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