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

[Xen-users] Mounting an image with loopback that contains an LVM


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Ian Murray <murrayie@xxxxxxxxxxx>
  • Date: Thu, 6 Nov 2008 16:49:51 +0000 (GMT)
  • Delivery-date: Thu, 06 Nov 2008 08:50:36 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=tBx3TOvszY87fxmtSqzl3N4axEETdLVLRP48Z2SwUp+U7g3xFjR8wcop/0mnS3BZ8zL3RUnf0MdvMlcA+GgpueVVbBuGhp89/7lXG6lQwlC1P+qifpvUaCbvMxUJAXeARIdVVis1JOD8ZI3PR/0BEUvxG1vpzipFTmRTVUye3Fw=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I have Ubuntu 8.04 Dom0 and CentOS 5.2 DomU. I want to be able to mount the image file of the CentOS DomU in the Ubuntu Dom0 to copy some stuff onto it.

I figured I could do it this way...

Make sure DomU was destroyed.

losetup /dev/loop1 /xen/test/test.img

using 'p' in fdisk /dev/loop1 gives me what I would expect... two partitions....

/dev/loop1p1 .... Linux
/dev/loop1p2 .... Linux LVM

when I run pvscan, it returns the error "no matching physical volumes found".

When I run pvcan -vvv it appears to look at /dev/loop1 but simply states that no label is found.

Under LVM on both systems, I did a 'version' command:-

Ubuntu Dom0

LVM     2.02.26 2007-06-15
Lib        1.02.20 2007-06-15


CentOS DomU

LVM    2.02.32-RHEL5    2008-03-04
Lib       1.02.24                  2007-12-20

Am I doing something wrong or is the problem with the slight mis-match of versions?

Thanks in advance,

Ian.

_______________________________________________
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®.