From: Stefan Hajnoczi <stefanha@redhat.com>
To: Wouter Verhelst <w@uter.be>
Cc: nbd-general@lists.sourceforge.net, kwolf@redhat.com,
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
qemu-devel@nongnu.org, pborzenkov@virtuozzo.com,
pbonzini@redhat.com, mpa@pengutronix.de, den@openvz.org
Subject: Re: [Qemu-devel] [Nbd] [PATCH v3] doc: Add NBD_CMD_BLOCK_STATUS extension
Date: Tue, 29 Nov 2016 09:17:14 +0000 [thread overview]
Message-ID: <20161129091714.GB5152@stefanha-x1.localdomain> (raw)
In-Reply-To: <20161128173324.tjg64dxcthqeeusn@grep.be>
[-- Attachment #1: Type: text/plain, Size: 4281 bytes --]
On Mon, Nov 28, 2016 at 06:33:24PM +0100, Wouter Verhelst wrote:
> Hi Stefan,
>
> On Mon, Nov 28, 2016 at 11:19:44AM +0000, Stefan Hajnoczi wrote:
> > On Sun, Nov 27, 2016 at 08:17:14PM +0100, Wouter Verhelst wrote:
> > > Quickly: the reason I haven't merged this yes is twofold:
> > > - I wasn't thrilled with the proposal at the time. It felt a bit
> > > hackish, and bolted onto NBD so you could use it, but without defining
> > > everything in the NBD protocol. "We're reading some data, but it's not
> > > about you". That didn't feel right
> > >
> > > - There were a number of questions still unanswered (you're answering a
> > > few below, so that's good).
> > >
> > > For clarity, I have no objection whatsoever to adding more commands if
> > > they're useful, but I would prefer that they're also useful with NBD on
> > > its own, i.e., without requiring an initiation or correlation of some
> > > state through another protocol or network connection or whatever. If
> > > that's needed, that feels like I didn't do my job properly, if you get
> > > my point.
> >
> > The out-of-band operations you are referring to are for dirty bitmap
> > management. (The goal is to read out blocks that changed since the last
> > backup.)
> >
> > The client does not access the live disk, instead it accesses a
> > read-only snapshot and the dirty information (so that it can copy out
> > only blocks that were written). The client is allowed to read blocks
> > that are not dirty too.
>
> I understood as much, yes.
>
> > If you want to implement the whole incremental backup workflow in NBD
> > then the client would first have to connect to the live disk, set up
> > dirty tracking, create a snapshot export, and then connect to that
> > snapshot.
> >
> > That sounds like a big feature set and I'd argue it's for the control
> > plane (storage API) and not the data plane (NBD). There were
> > discussions about transferring the dirty information via the control
> > plane but it seems more appropriate to it in the data plane since it is
> > block-level information.
>
> I agree that creating and managing snapshots is out of scope for NBD. The
> protocol is not set up for that.
>
> However, I'm arguing that if we're going to provide information about
> snapshots, we should be able to properly refer to these snapshots from
> within an NBD context. My previous mail suggested adding a negotiation
> message that would essentially ask the server "tell me about the
> snapshots you know about", giving them an NBD identifier in the process
> (accompanied by a "foreign" identifier that is decidedly *not* an NBD
> identifier and that could be used to match the NBD identifier to
> something implementation-defined). This would be read-only information;
> the client cannot ask the server to create new snapshots. We can then
> later in the protocol refer to these snapshots by way of that NBD
> identifier.
>
> My proposal also makes it impossible to get updates of newly created
> snapshots without disconnecting and reconnecting (due to the fact that
> you can't go from transmission back to negotiation), but I'm not sure
> that's a problem.
>
> Doing so has two advantages:
> - If a client is accidentally (due to misconfiguration or implementation
> bugs or whatnot) connecting to the wrong server after having created a
> snapshot through a management protocol, we have an opportunity to
> detect this error, due to the fact that the "foreign" identifiers
> passed to the client during negotiation will not match with what the
> client was expecting.
> - A future version of the protocol could possibly include an extended
> version of the read command, allowing a client to read information
> from multiple storage snapshots without requiring a reconnect, and
> allowing current clients information about allocation status across
> various snapshots (although a first implementation could very well
> limit itself to only having one snapshot).
Sorry, I misunderstood you.
Snapshots are not very different from NBD exports. Especially if the
storage system supports writeable-snapshot (aka cloning). Should we
just used named exports?
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2016-11-29 9:17 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-25 11:28 [Qemu-devel] [PATCH v3] doc: Add NBD_CMD_BLOCK_STATUS extension Vladimir Sementsov-Ogievskiy
2016-11-25 14:02 ` Stefan Hajnoczi
2016-11-27 19:17 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-11-28 11:19 ` Stefan Hajnoczi
2016-11-28 17:33 ` Wouter Verhelst
2016-11-29 9:17 ` Stefan Hajnoczi [this message]
2016-11-29 10:50 ` Wouter Verhelst
2016-11-29 12:41 ` Vladimir Sementsov-Ogievskiy
2016-11-29 13:08 ` Wouter Verhelst
2016-11-29 13:07 ` Alex Bligh
2016-12-01 10:14 ` Wouter Verhelst
2016-12-01 11:26 ` Vladimir Sementsov-Ogievskiy
2016-12-02 9:25 ` Wouter Verhelst
2016-11-28 23:15 ` John Snow
2016-11-29 10:18 ` Kevin Wolf
2016-11-29 11:34 ` Vladimir Sementsov-Ogievskiy
2016-11-30 10:41 ` Sergey Talantov
2016-11-29 12:57 ` [Qemu-devel] " Alex Bligh
2016-11-29 14:36 ` Vladimir Sementsov-Ogievskiy
2016-11-29 14:52 ` Alex Bligh
2016-11-29 15:07 ` Vladimir Sementsov-Ogievskiy
2016-11-29 15:17 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-12-01 23:42 ` [Qemu-devel] " John Snow
2016-12-02 9:16 ` Vladimir Sementsov-Ogievskiy
2016-12-02 18:45 ` Alex Bligh
2016-12-02 20:39 ` John Snow
2016-12-03 11:08 ` Alex Bligh
2016-12-05 8:36 ` Vladimir Sementsov-Ogievskiy
2016-12-06 13:32 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-12-06 16:39 ` John Snow
2016-12-08 3:39 ` [Qemu-devel] " Alex Bligh
2016-12-08 6:58 ` Vladimir Sementsov-Ogievskiy
2016-12-08 14:13 ` Alex Bligh
2016-12-08 9:44 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-12-08 14:40 ` Alex Bligh
2016-12-08 15:59 ` Eric Blake
2016-12-08 16:03 ` 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=20161129091714.GB5152@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=den@openvz.org \
--cc=kwolf@redhat.com \
--cc=mpa@pengutronix.de \
--cc=nbd-general@lists.sourceforge.net \
--cc=pbonzini@redhat.com \
--cc=pborzenkov@virtuozzo.com \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.com \
--cc=w@uter.be \
/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).