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

xen-users

[Top] [All Lists]

Re: [Xen-users] Migrating DomUs from file VBD to LVM Backend

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Migrating DomUs from file VBD to LVM Backend
From: Reinhard Brandstädter <reinhard.brandstaedter@xxxxxx>
Date: 2007年4月24日 16:39:45 +0200
Delivery-date: 2007年4月24日 07:38:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E2BB8074E5500C42984D980D4BD78EF9CCA0F2@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>
References: <200704241525.17963.reinhard.brandstaedter@xxxxxx> <E2BB8074E5500C42984D980D4BD78EF9CCA0F2@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
On Tuesday 24 April 2007 15:42, Ross S. W. Walker wrote:
> > -----Original Message-----
> > From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> > [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> > Reinhard Brandstädter
> > Sent: Tuesday, April 24, 2007 9:25 AM
> > To: xen-users@xxxxxxxxxxxxxxxxxxx
> > Subject: [Xen-users] Migrating DomUs from file VBD to LVM Backend
> >
> > Hello,
> >
> > what would be the easiest and fastest way to migrate a file
> > based DomU to a
> > LVM based DomU. Given that the file contains a partition
> > table + partitions.
> >
> > I tried with an dummy approach:
> >
> > dd if=/path/to/file.img of=/dev/volumegroup/logical-volume.
> >
> > That gives me a logical volume that xm create refuses to use....
>
> What format is file.img, is it a sparse file created with dd, or
> is it a qcow qemu file?
It's a sparse file.
I found a solution which works, but not really elegant:
1. I created a LVM Volume with the size of the image
2. created a partition table on that volume (same layout as within the disk 
image)
3. used kpartx to get device mappings from the file and the LVM volume
4. used 'dd' to dump the single partitions from the image to the single 
partitions of the LVM volume.
Now I only wonder why dumping the image directly to the LVM volume doesn't 
work.
Reinhard 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-users] Migrating DomUs from file VBD to LVM Backend , Ross S. W. Walker
Next by Date: RE: [Xen-users] Migrating DomUs from file VBD to LVM Backend , Petersson, Mats
Previous by Thread: RE: [Xen-users] Migrating DomUs from file VBD to LVM Backend , Ross S. W. Walker
Next by Thread: RE: [Xen-users] Migrating DomUs from file VBD to LVM Backend , Petersson, Mats
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /