All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jens Kristian Søgaard" <jens@mermaidconsulting.dk>
To: Sage Weil <sage@inktank.com>
Cc: Wolfgang Hennerbichler <wolfgang.hennerbichler@risc-software.at>,
	ceph-devel@vger.kernel.org
Subject: Re: [ceph-users] snapshot, clone and mount a VM-Image
Date: Sun, 17 Feb 2013 00:16:40 +0100	[thread overview]
Message-ID: <51201358.3010103@mermaidconsulting.dk> (raw)
In-Reply-To: <alpine.DEB.2.00.1302161456480.25660@cobra.newdream.net>

Hi Sage,

> Would qcow2 let you store the incremental portion of a backup without the 
> actual image?  A common use case would be:

> - take snapshot1 on cluster A
> - copy image to cluster B, possibly without writing to an intermediate 
>   file.. e.g. 'rbd export ... - | ssh otherhost rbd import - ...'
> and later,
> - take snapshot2 on cluster A
> - stream snapshot1->2 incremental to cluster B

Well, qcow2 is designed for storing image files on disk, not as a 
"streamed" file format - so it is not covered by the specification. 
However, I don't see what should keep us from using it the way you describe.

The only drawback is that standard qcow2 tools will not be able to work 
with the incremental file on its own - they would need the base image to 
be file based.

Basically a qcow2 "incremental" file contains:

  - string holding the path and filename of the backing file
  - lookup table that tells which blocks are included in the file
  - actual data in 512 byte blocks

In this "streaming" case we would not have a path and file to the 
backing file. Instead we could store something like 
rbd:pool/imagename@snapname instead of a traditional path and file name.

-- 
Jens Kristian Søgaard, Mermaid Consulting ApS,
jens@mermaidconsulting.dk,
http://www.mermaidconsulting.com/
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2013-02-16 23:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5118C6BF.70207@risc-software.at>
     [not found] ` <5118FA0D.606@42on.com>
     [not found]   ` <5118FB31.6020902@risc-software.at>
2013-02-11 14:28     ` [ceph-users] snapshot, clone and mount a VM-Image Sage Weil
2013-02-14 19:25       ` Jens Kristian Søgaard
2013-02-14 20:53         ` Sage Weil
2013-02-15  2:03           ` Josh Durgin
2013-02-16 11:51           ` Jens Kristian Søgaard
2013-02-16 22:59             ` Sage Weil
2013-02-16 23:16               ` Jens Kristian Søgaard [this message]
2013-02-28 23:33             ` Josh Durgin
2013-02-28 23:42               ` Sage Weil
2013-03-01  0:43               ` Ian Colle

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=51201358.3010103@mermaidconsulting.dk \
    --to=jens@mermaidconsulting.dk \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sage@inktank.com \
    --cc=wolfgang.hennerbichler@risc-software.at \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.