All of lore.kernel.org
 help / color / mirror / Atom feed
* flatten rbd export / export-diff ?
@ 2013-06-04 13:39 Stefan Priebe - Profihost AG
  2013-06-04 15:23 ` Sage Weil
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Priebe - Profihost AG @ 2013-06-04 13:39 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

Hi,

is there a way to flatten the rbd export-diff to a "new" image FILE. Or
do i always have to:

rbd import "OLD BASE IMAGE"
rbd import-diff diff1
rbd import-diff diff1-2
rbd import-diff diff2-3
rbd import-diff diff3-4
rbd import-diff diff4-5
...
and so on?

I would like to apply the diffs on local disk and then import the new file.

Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: flatten rbd export / export-diff ?
  2013-06-04 13:39 flatten rbd export / export-diff ? Stefan Priebe - Profihost AG
@ 2013-06-04 15:23 ` Sage Weil
  2013-06-04 18:04   ` Stefan Priebe
  0 siblings, 1 reply; 4+ messages in thread
From: Sage Weil @ 2013-06-04 15:23 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG; +Cc: ceph-devel@vger.kernel.org

On Tue, 4 Jun 2013, Stefan Priebe - Profihost AG wrote:
> Hi,
> 
> is there a way to flatten the rbd export-diff to a "new" image FILE. Or
> do i always have to:
> 
> rbd import "OLD BASE IMAGE"
> rbd import-diff diff1
> rbd import-diff diff1-2
> rbd import-diff diff2-3
> rbd import-diff diff3-4
> rbd import-diff diff4-5
> ...
> and so on?
> 
> I would like to apply the diffs on local disk and then import the new file.

Not currently.  The format is very simple, though; it should be pretty 
simple to implement a subcommand in the rbd tool to do it.

sage

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: flatten rbd export / export-diff ?
  2013-06-04 15:23 ` Sage Weil
@ 2013-06-04 18:04   ` Stefan Priebe
  2013-06-04 18:13     ` Josh Durgin
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Priebe @ 2013-06-04 18:04 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel@vger.kernel.org

Am 04.06.2013 17:23, schrieb Sage Weil:
> On Tue, 4 Jun 2013, Stefan Priebe - Profihost AG wrote:
>> Hi,
>>
>> is there a way to flatten the rbd export-diff to a "new" image FILE. Or
>> do i always have to:
>>
>> rbd import "OLD BASE IMAGE"
>> rbd import-diff diff1
>> rbd import-diff diff1-2
>> rbd import-diff diff2-3
>> rbd import-diff diff3-4
>> rbd import-diff diff4-5
>> ...
>> and so on?
>>
>> I would like to apply the diffs on local disk and then import the new file.
>
> Not currently.  The format is very simple, though; it should be pretty
> simple to implement a subcommand in the rbd tool to do it.

Oh my C skills are more than limited ;-( i could do it in perl ;-) Is 
there a format description?

Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: flatten rbd export / export-diff ?
  2013-06-04 18:04   ` Stefan Priebe
@ 2013-06-04 18:13     ` Josh Durgin
  0 siblings, 0 replies; 4+ messages in thread
From: Josh Durgin @ 2013-06-04 18:13 UTC (permalink / raw)
  To: Stefan Priebe; +Cc: Sage Weil, ceph-devel@vger.kernel.org

On 06/04/2013 11:04 AM, Stefan Priebe wrote:
> Am 04.06.2013 17:23, schrieb Sage Weil:
>> On Tue, 4 Jun 2013, Stefan Priebe - Profihost AG wrote:
>>> Hi,
>>>
>>> is there a way to flatten the rbd export-diff to a "new" image FILE. Or
>>> do i always have to:
>>>
>>> rbd import "OLD BASE IMAGE"
>>> rbd import-diff diff1
>>> rbd import-diff diff1-2
>>> rbd import-diff diff2-3
>>> rbd import-diff diff3-4
>>> rbd import-diff diff4-5
>>> ...
>>> and so on?
>>>
>>> I would like to apply the diffs on local disk and then import the new
>>> file.
>>
>> Not currently.  The format is very simple, though; it should be pretty
>> simple to implement a subcommand in the rbd tool to do it.
>
> Oh my C skills are more than limited ;-( i could do it in perl ;-) Is
> there a format description?

Yeah, it should be pretty easy to decode in any language:

http://ceph.com/docs/master/dev/rbd-diff/

You could also use the python or C bindings for librbd's diff_iterate to
create a different format if you wanted.

Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-04 18:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 13:39 flatten rbd export / export-diff ? Stefan Priebe - Profihost AG
2013-06-04 15:23 ` Sage Weil
2013-06-04 18:04   ` Stefan Priebe
2013-06-04 18:13     ` Josh Durgin

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.