[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Mounting Xen LVM Guests


  • To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.