flatten rbd export / export-diff ?
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
Quoted 14 lines · Stefan Priebe - Profihost AG
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?
Quoted 1 line
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
Am 04.06.2013 17:23, schrieb Sage Weil:
Quoted 15 lines · Stefan Priebe - Profihost AG
Quoted 14 lines
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?
Quoted 4 lines
Quoted 1 line
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
Quoted 16 lines · Stefan Priebe
Am 04.06.2013 17:23, schrieb Sage Weil:
Quoted 15 lines · Stefan Priebe - Profihost AG
Quoted 14 lines
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?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
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