Project

General

Profile

Actions

Feature #18984

open

RFE: let rbd export write directly to a block device

Added by Ruben Kerkhof about 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

It would be great if `rbd export` could write directly to a block device.

Right now it won't let you:
  1. rbd export fedora-25-x86_64 /dev/vgdata/lvfedora
    rbd: export error: (17) File exists

I can of course just redirect stdout, but this is quite slow. I expect this is because stdout is not seekable and writes are serialised?

$ time rbd export fedora-25-x86_64 - > /dev/vgdata/lvfedora
Exporting image: 100% complete...done.

real 0m29.704s
user 0m1.289s
sys 0m9.861s

Writing to a normal file is a lot faster:

$ time rbd export fedora-25-x86_64 /data/fedora.img
Exporting image: 100% complete...done.

real 0m6.121s
user 0m1.962s
sys 0m2.079s

Actions

Also available in: Atom PDF