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: "Mark Walkom" <markwalkom@xxxxxxxxx>
Date: Wed, 7 Jan 2009 19:21:34 +1100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 07 Jan 2009 00:22:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=zYB2kTYfn88jt2XKAu3E6CXbdt8aTf/3f7TNuFDi2AA=; b=ukOT1gx1ej32VYvpDfgEptVkB/X9pkoCk6Kor0KEnkgJ72JbpHg2diJ7Cx310gg/74 ej5NXmGe3CTr6FSXn7LnAEoU1nzyTOpwJ7aKmoPzs0c7/bF6msQl+RZ0jGfgumJGxi+L 4FaPnMdwBt1Ic8SwK8SlBLJFlzFRgOrslMRm4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=J/paIY25SJWhpzrgjWYzNtuGwOUa8cR578kyBpAJ7PsC2j63mX7xuplDSLRfFlFGlV yZNgnM6IDNJpqOT34BM0kizyP3OW3JQlXIC98JZ47B5k/www+4cPV6cOKSa390c3MFPv KTc+xD53CoamZt0qYuNa3z8qT/7smD7vdXgKg=
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>
References: <142756578.231231313586753.JavaMail.root@web01> <910755016.251231313626105.JavaMail.root@web01> <235177650901062349v7a17f583yc64eb53fffa53346@xxxxxxxxxxxxxx> <496464AD.40104@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Good point, I generally keep my partitions separate, everything under / and then swap as a separate LV.

2009/1/7 Fajar A. Nugraha <fajar@xxxxxxxxx>
Mark Walkom wrote:
> All you need to do is;
>
>    1. Have a mount point, eg /mnt/tmp
>    2. mount /dev/xen-system/test01.max /mnt/tmp
>
> That is really all that is needed.

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.

>
> 2009/1/7 Eredicator X <eredicatorx@xxxxxxxxxxxxxxx
> <mailto:eredicatorx@xxxxxxxxxxxxxxx>>
>
>     I want to be able to mount LVM partitions that are xen guests when
>     shut down of course.
>
>     #root@max02:/home/virt# virt-install
>     #Would you like a fully virtualized guest (yes or no)? This will
>     allow you to run unmodified operating systems. yes
>     #What is the name of your virtual machine? test01.max
>     #How much RAM should be allocated (in megabytes)? 1000
>     #What would you like to use as the disk (file path)?
>     /dev/xen-system/test01.max
>     #Would you like to enable graphics support? (yes or no) yes
>     #What is the virtual CD image, CD device or install location?
>     /export/home0/erin/ISO/CentOS-5.2-x86_64-netinstall.iso
>

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.

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
- 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. Or,
- learn how to use kpartx, pvscan, and vgscan, and hope you don't have
conflicting VG names.

Regards,

Fajar




_______________________________________________
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