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

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



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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