[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re: Cannot boot with LVM inside Xen DomU


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Oliver Wilcock" <oliver@xxxxxxx>
  • Date: Mon, 11 Jul 2011 13:21:09 -0400 (EDT)
  • Delivery-date: Mon, 11 Jul 2011 10:22:24 -0700
  • Importance: Normal
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I wanted to echo Fajar's comments that using the installer to create a
guest with a new LVM configuration inside the virtual disk is the best
idea for you.

The idea that you could copy /dev/sda into a LV is rather suspicious. 
Only an LV created on a larger device such as /dev/sdb could contain the
data in /dev/sda.  If you created the LV in a VG created on /dev/sda then
it would not fit inside itself.

Also, please understand that an LVM configuration has named volume groups
(VGs).  If you copy /dev/sda then the name of the VG which is stored in
/dev/sda would also be copied.  This means two VGs with the same name on
the same computer.  That's bad news.

It might not be apparent to you that VGs have names if you haven't created
many.  For example, the openSUSE installer defaults to a VG named system. 
Each VM guest would try to create "system" and this is not such a great
idea.  I would change each to match the name of the server.

> Date: Sun, 10 Jul 2011 22:54:23 +0530
> From: Prakhar Srivastava <prakhar.apj@xxxxxxxxx>
> Subject: Re: [Xen-users] Cannot boot with LVM inside Xen DomU
> To: "Fajar A. Nugraha" <list@xxxxxxxxx>
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Message-ID:
>       <CAF+Dr+uesk7reRgujQkM52f9HybYEN5dADUAj07Li3nqr_ss5A@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> I am going to copy the domO PV i.e. /dev/sda to a logical volume and use
> that to boot a Xen guest.
>
> I have been using Eucalyptus images for Xen to rum them from an LVM
> backend.
>
> Anyways, I am going to try and use virt-manager for installing Xen PV
> guests
> and hope I am able to setup LVM within.
>
> Thanks
> Prakhar




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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.