From: George Dunlap <george.dunlap@eu.citrix.com>
To: Alex Bligh <alex@alex.org.uk>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen 4.3 development update, 15 Oct
Date: Tue, 18 Dec 2012 16:40:07 +0000 [thread overview]
Message-ID: <50D09C67.1010703@eu.citrix.com> (raw)
In-Reply-To: <008ECD032A8603F73C448ABD@Ximines.local>
On 18/12/12 16:03, Alex Bligh wrote:
>
>
> --On 18 December 2012 14:28:57 +0000 George Dunlap
> <George.Dunlap@eu.citrix.com> wrote:
>
>>>> * Make storage migration possible
>>>> owner: ?
>>>> status: ?
>>>> There needs to be a way, either via command-line or via some hooks,
>>>> that someone can build a "storage migration" feature on top of libxl
>>>> or xl.
>>>
>>> We have this working with qemu-xen, qcow2 and snapshot rebase. At a libxl
>>> level (but not an xl level), everything seems to be there.
>>
>> Can you describe in more detail how you implement this? Do you have a
>> script or something?
>
> We have a pile of C code :-)
>
> A script would do something like:
>
> 1. Ask qemu to do a live snapshot using snapshot_blkdev putting the
> snapshot in a new file on the new storage device. This ensures that all new
> writes go to the new storage device.
>
> 2. Rebase the snapshot to a null backing file (I think that's qemu-img
> rebase with -b '' though we had to submit a couple of lines of patch to
> qemu to make it work) which fills the non-written blocks from the new
> snapshot from the old base image and breaks the link to the the old base
> image.
So it sounds like in this case you're talking about moving the disk to a
different storage device connected to the same host, leaving the VM
running on the same host.
What I was talking about in this was migrating the VM and storage
together to a new host. People who want this typically have all VMs on
local storage, so (if I'm understanding you right) the snapshot trick
won't work, because host A (where it's running) can't directly access
host B's disk (to which we want to migrate it).
Although I suppose one could always hack something together with sshfs
or something. :-)
-George
next prev parent reply other threads:[~2012-12-18 16:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-15 16:19 Xen 4.3 development update, 15 Oct George Dunlap
2012-10-16 6:52 ` Jan Beulich
2012-10-16 14:45 ` Konrad Rzeszutek Wilk
2012-10-16 15:03 ` Ian Campbell
2012-10-17 10:39 ` George Dunlap
2012-12-18 13:57 ` Alex Bligh
2012-12-18 14:28 ` George Dunlap
2012-12-18 16:03 ` Alex Bligh
2012-12-18 16:40 ` George Dunlap [this message]
2012-12-18 17:26 ` Alex Bligh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50D09C67.1010703@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=alex@alex.org.uk \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).