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] SAN / LVM backend and partitions

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] SAN / LVM backend and partitions
From: "Ulrich Windl" <ulrich.windl@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jan 2007 16:32:18 +0100
Delivery-date: Fri, 19 Jan 2007 07:32:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45B0C2560200004200007765@xxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: Universitaet Regensburg, Klinikum
Priority: normal
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Reinhard,

for me the second method actually failed with SLES10 at that time because 
initrd/initfs was unable to mount the LVM root. I switched to the first method.

Regards,
Ulrich

On 19 Jan 2007 at 13:06, Reinhard Brandstaedter wrote:

> Hi,
> 
> I'm playing around with Xen using LVM2 based on a SAN storage for VBDs.
> Unfortunately I'm not very familiar with LVM2 but so far I get DomUs up
> and running with using a logical volume as disk.
> 
> What confuses me a bit is the two different ways how to use a logical
> volume.
> >From the XEN User Manual I see this procedure:
> - create logical volume
> - create filesystem on LV
> - copy system files (the LV is mountable in dom0)
> 
> Basically if you want multiple disks (or partitions for /usr,/var, ...)
> in the DomU you specify them in the vm config file and need to have
> multiple logical volumes on the Dom0 for that, like:
> /dev/vg0/vm-root
> /dev/vg0/vm-var
> /dev/vg0/vm-usr
> 
> However I can also only specify only one logical volume in the config
> file and do the partitioning in the DomU then. (e.g. if I use
> virt-install on RedHat). So the one logical volume would get a partition
> table?
> Calling fdisk on this volume would print something like that:
> # fdisk -l /dev/vg0/vm-root
> 
> Disk /dev/vg/vm-root: 6442 MB, 6442450944 bytes
> 255 heads, 63 sectors/track, 783 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Device             Boot  Start  End  Blocks    Id  System
> /dev/vg0/vm-root1  *     1      13   104391    83  Linux
> /dev/vg0/vm-root2        14     78   522112+   82  Linux swap
> /dev/vg0/vm-root3        79     783  5662912+  83  Linux
> 
> Maybe this is much more a LVM issue, but which way is the better one for
> use with Xen?
> If I use partitions in a logical volume can they be mounted in the Dom0
> system as well? (e.g. for changing files while DomU is not running)
> Are there any considerations for these two aproaches when using
> live-migration?
> 
> Thanks,
> Reinhard
> 
> 
> _______________________________________________
> 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

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