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

[Xen-users] Re: lvm inside of domU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: lvm inside of domU
From: "Oliver Wilcock" <oliver@xxxxxxx>
Date: Mon, 17 May 2010 06:39:36 -0400 (EDT)
Delivery-date: Mon, 17 May 2010 03:40:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <20100517075237.4AF0340EAEE4@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20100517075237.4AF0340EAEE4@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.17
Well LVM inside a DomU definitely works.  LVM works in a DomU the same way
it works in Dom0.  What I did was to pass a physical disk /dev/sdc into
the DomU with a VG called vg2 on it.

In this scenario the Dom0, when booting, activates the VG.  I felt it was
safer to have the VG active by only one OS so during Dom0 boot I made an
init.d script which does this:
# set the VG to inactive
vgchange -a n vg2
# start the DomU which uses the VG
xm create theDomU
# theDomU config refers to phy:/dev/sdc,xvdc,w


It might be worth noting that the DomU must be able to see all the
physical extents that make up the VG and it must have exclusive access to
them.

It might be possible to use the lvm.conf file to prevent the vg from
starting.

It is possible to pvcreate inside a DomU that has been passed an lv.  I
think the same concerns arise.  The Dom0 may attempt to activate the
nested VG.

> Message: 1
> Date: Sun, 16 May 2010 22:07:40 +0200
> From: toni <dranach@xxxxxxxxxx>
> Subject: [Xen-users] lvm inside of domU
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Message-ID: <4BF0508C.7040509@xxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I've found some discussion here about using lvm *inside* the domU.
> I would like to do my own share of experimenting with it, but haven't
> found any info (yet) on how to use lvm inside the domU.
>
> Can anyone point me in the right direction of some useful documentation
> on the subject?
>
> All the searches I've made so far invariably point to making a domU *on*
> a volume group, which isn't exactly what I'm looking for, since I have
> already accomplished that part..
>
> Toni M.


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Re: lvm inside of domU, Oliver Wilcock <=