All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
To: Oliver Francke <Oliver.Francke@filoo.de>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
	Dan Mick <dan.mick@inktank.com>
Subject: Re: rbd STDIN import does not work / wip-rbd-export-stdout
Date: Mon, 26 Nov 2012 14:35:35 +0100	[thread overview]
Message-ID: <50B37027.5000701@profihost.ag> (raw)
In-Reply-To: <50B36ED1.1020108@filoo.de>

Am 26.11.2012 14:29, schrieb Oliver Francke:
> Well...

makes no difference:
gzip -dc vm-101-disk-1.img.gz | rbd import --format=2 --size=40960 - 
kvmpool1/vm-101-disk-1
rbd: error reading file: (29) Illegal seek
Importing image: 0% complete...failed.
rbd: import failed: (29) Illegal seek

I think the problem is that ceph seeks in File when it get's zeros (not 
filled content). But seeking doesn't work on stdin. It has to read from 
stdin until there are no more zeros.

Stefan

> On 11/26/2012 02:20 PM, Stefan Priebe - Profihost AG wrote:
>> Hello list,
>>
>> i know branch wip-rbd-export-stdout is work in progress but it is more
>> than useful ;-)
>>
>> When i try to import an image i get:
>>
>> # gzip -dc vm-101-disk-1.img.gz | rbd import --format=2
>> --size=42949672960 - kvmpool1/vm-101-disk-1
>> rbd: error reading file: (29) Illegal seek
>> Importing image: 0% complete...failed.
>> rbd: import failed: (29) Illegal seek
>>
>> Anything i've tried wrong?
>
> I would assume, that size is already in MiB? Seems to be a slightly too
> big value... Not tried myself, though...
>
> Oliver.
>
>>
>> Greets,
>> Stefan
>> --
>> 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:[~2012-11-26 13:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26 13:20 rbd STDIN import does not work / wip-rbd-export-stdout Stefan Priebe - Profihost AG
2012-11-26 13:29 ` Oliver Francke
2012-11-26 13:35   ` Stefan Priebe - Profihost AG [this message]
2012-11-26 17:34     ` Dan Mick
2012-11-26 19:35       ` Stefan Priebe - Profihost AG
2012-11-26 20:00         ` Dan Mick
2012-11-27  9:16           ` Stefan Priebe - Profihost AG
2012-11-27 22:50             ` Josh Durgin
2012-11-28  8:09               ` Stefan Priebe - Profihost AG
2012-11-28 18:51                 ` Josh Durgin
2012-11-29 10:26                   ` Stefan Priebe - Profihost AG
2012-11-28 14:53             ` Stefan Priebe - Profihost AG
2012-12-02  0:27               ` Dan Mick
2012-12-01 20:23             ` Stefan Priebe
2012-12-02  0:28               ` Dan Mick

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=50B37027.5000701@profihost.ag \
    --to=s.priebe@profihost.ag \
    --cc=Oliver.Francke@filoo.de \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dan.mick@inktank.com \
    /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.