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] Re: DomU on LVM

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Re: DomU on LVM
From: Wolfgang Rosenauer <wolfgang.rosenauer@xxxxxxxxxx>
Date: Thu, 08 May 2008 15:42:35 +0200
Delivery-date: Thu, 08 May 2008 06:43:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E2BB8074E5500C42984D980D4BD78EF9022A71AA@xxxxxxxxxxxxxxxxxxxxx>
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>
Openpgp: id=294E8CF1
References: <4822F513.7000705@xxxxxxxxxx> <fvuu7e$tra$1@xxxxxxxxxxxxx> <E2BB8074E5500C42984D980D4BD78EF9022A71AA@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.14) Gecko/20080410 SUSE/1.1.9-6.3 SeaMonkey/1.1.9
Ross S. W. Walker wrote:
So IMHO a better way to do it is to export each lv as
a separate disk and make one single partition of whole
such disk in domU:
/dev/vg/lv1 -> /dev/hda -> /dev/hda1 --> /
/dev/vg/lv2 -> /dev/hdb -> /dev/hdb1 --> /var
/dev/vg/lv3 -> /dev/hdc -> /dev/hdc1 --> /home

Resizing is extremly easy (lvextend, resize2fs)
and it can be done online if ext3 is used.

The only disadvantage is you can't mount such filesystem
directly, you need to run 'kpartx -a' first to map nested
domuU block devies in dom0. But that's also pretty easy.

What would be the practical reason for that as opposed to
allocating a bigger LV to contain all partitions?

For me the advantage would be that I'm able to resize the different partitions. If I use the LV as complete disk I only could extend the last partition in DomU.

Wolfgang


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

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