From: Jiri Denemark <jdenemar@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com, dlaor@redhat.com,
qemu-devel@nongnu.org, avi@redhat.com, stefanha@gmail.com
Subject: Re: [Qemu-devel] [patch 4/4] QEMU live block copy
Date: Thu, 16 Jun 2011 09:27:43 +0200 [thread overview]
Message-ID: <20110616072743.GB514380@orkuz.home> (raw)
In-Reply-To: <20110615174009.094728634@amt.cnet>
On Wed, Jun 15, 2011 at 14:14:07 -0300, Marcelo Tosatti wrote:
> Index: qemu-block-copy/qmp-commands.hx
> ===================================================================
> --- qemu-block-copy.orig/qmp-commands.hx
> +++ qemu-block-copy/qmp-commands.hx
...
> SQMP
> +query-block-copy
> +-------------
> +
> +Live block copy status.
> +
> +Each block copy instance information is stored in a json-object and the returned
> +value is a json-array of all instances.
> +
> +Each json-object contains the following:
> +
> +- "device": device name (json-string)
> +- "status": block copy status (json-string)
> + - Possible values: "active", "failed", "mirrored", "completed", meaning:
> + - failed: block copy failed.
> + - stopped: block copy stopped.
> + - active: block copy active, copying to destination image.
> + - mirrored: block copy active, finished copying to destination
> + image, writes are mirrored.
> + - completed: block copy completed.
> +
> +- "info": A json-object with the statistics information, if status is "active":
> + - "percentage": percentage completed (json-int)
> +
> +Example:
> +
> +Block copy for "ide1-hd0" active and block copy for "ide1-hd1" failed:
> +
> +-> { "execute": "query-block-copy" }
> +<- {
> + "return":[
> + {"device":"ide1-hd0",
> + "status":"active",
> + "info":{
> + "percentage":23,
> + }
> + },
> + {"device":"ide1-hd1",
> + "status":"failed"
> + }
> + ]
> + }
> +
> +EQMP
This documentation doesn't reflect the changes to progress reporting you made
in the code.
> Index: qemu-block-copy/docs/block_copy.txt
> ===================================================================
> --- /dev/null
> +++ qemu-block-copy/docs/block_copy.txt
...
> +Migration
> +=========
> +
> +It is necessary to specify active block copy instance in the destination
> +VM before migration is performed. Example:
> +
> +1) start VM in incoming mode.
> +2) for each active block copy instance on the source, run:
> + (qemu) block_copy device /path/to/image.dst [-i] -m
> +
> +
I guess I'm a bit behind but what exactly can this migration support in
block_copy be used for?
Jirka
next prev parent reply other threads:[~2011-06-16 7:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 17:14 [Qemu-devel] [patch 0/4] live block copy (v5) Marcelo Tosatti
2011-06-15 17:14 ` [Qemu-devel] [patch 1/4] Add blkmirror block driver Marcelo Tosatti
2011-06-15 17:14 ` [Qemu-devel] [patch 2/4] Add error messages for live block copy Marcelo Tosatti
2011-06-15 17:14 ` [Qemu-devel] [patch 3/4] Add blkdebug points " Marcelo Tosatti
2011-06-15 17:14 ` [Qemu-devel] [patch 4/4] QEMU " Marcelo Tosatti
2011-06-16 7:27 ` Jiri Denemark [this message]
2011-06-16 18:52 ` Stefan Hajnoczi
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=20110616072743.GB514380@orkuz.home \
--to=jdenemar@redhat.com \
--cc=Jes.Sorensen@redhat.com \
--cc=avi@redhat.com \
--cc=dlaor@redhat.com \
--cc=kwolf@redhat.com \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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).