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/
Home Products Support Community News


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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Mounting an image with loopback that contains an LVM
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=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: <7ECBFE60CB7F02478CDDDE40C985813A0DF21329@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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,


Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>