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] File system layout

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] File system layout
From: Paul Barnett <xen@xxxxxxxxxxxxxxx>
Date: Mon, 17 Mar 2008 15:55:03 +0000 (GMT)
Delivery-date: Mon, 17 Mar 2008 08:55:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47DDC949.3040208@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/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: <20080314144312.ut0w1udf6s0084ck@xxxxxxxxxxxxxx> <200803150236.42897.mark.williamson@xxxxxxxxxxxx> <47DDC949.3040208@xxxxxxxxx>
Reply-to: Paul Barnett <mail@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 1.00 (LRH 882 2007-12-20)
On Mon, 17 Mar 2008, Fajar A. Nugraha wrote:

Mark Williamson wrote:
My supervisor wants to create a LV then give that to a VM and then
create a VG with LV's under it inside the VM. I have read on the list
where this will give bad performance inside the VM.


It won't necessarily give *bad* performance but doing the two layers of translation is a bit unfortunate.



An email from Sadique on this list sometime early this year said LVM has 2%
performance hit over pysical partitions. So using LVM on both dom0 and domU (roughly) reduce performance by 4%.

To me, the simplicity of doing all LVM management in dom0 and hiding it from the guest appeals.

It's actually possible to pass separate LVM volumes to appear as individual partitions in the guest - this has the advantage that there's no MS-DOS partition table to worry about, just a load of linear LVs with filesystems on.



I second that. That is what we do for Linux PV guests.

For interest, how do you do this?

I can see how you can make dom0 lvs appear to the pv guest as separate
disks, and mke2fs each as a whole-disk file-system (without a
partition table.) But is there some trick to make separate dom0 lvs
appear to the domu guest as partitions on a single disk? If so, where
is the partition table, and where does grub install to?

Or, assuming separate disks, where does /boot go?

Do you make a small (100M) lv for /boot?

and how do you tell grub to boot from it - I tried it, and grub does not
seem able to install itself correctly - I get:

[root@domu ~ 0]$ grub-install /dev/hda
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
The file /boot/grub/stage1 not read correctly.
[root@domu ~ 1]$

Am I missing something obvious?

(using Centos 5.1 x86_64 as dom0 and domu)





Regards,

Fajar



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

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