From: Alex Bligh <alex@alex.org.uk>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Alex Bligh <alex@alex.org.uk>, xen-devel@lists.xen.org
Subject: Re: Xen 4.3 development update, 15 Oct
Date: Tue, 18 Dec 2012 16:03:46 +0000 [thread overview]
Message-ID: <008ECD032A8603F73C448ABD@Ximines.local> (raw)
In-Reply-To: <CAFLBxZY3zXaNQ93zq8YuKQm=+Hc7SoN2uVsjgJ1kZb_=N5CszA@mail.gmail.com>
--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.
In our implementation we have a separate hierarchy database from the parent
links stored within the qcow2 files so we get proper usage counting etc.
but that's an 'implementation detail'.
>From memory (and at risk of crossing threads) using this device model and
external snapshots you can use qemu-img resize to resize drives live at
least under KVM. Obviously the information that the drive has been resized
needs to get to the guest somehow.
--
Alex Bligh
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-12-18 16:03 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 [this message]
2012-12-18 16:40 ` George Dunlap
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=008ECD032A8603F73C448ABD@Ximines.local \
--to=alex@alex.org.uk \
--cc=George.Dunlap@eu.citrix.com \
--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).