* rbd import from stdin
@ 2012-11-23 10:15 Stefan Priebe - Profihost AG
2012-11-23 10:25 ` Alexandre DERUMIER
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-11-23 10:15 UTC (permalink / raw)
To: ceph-devel@vger.kernel.org
Hello,
i was looking at the wip-rbd-export-stdout branch which also allows to
import from stdin.
But it doesn't seem to work:
gzip -d -c vm-101-disk-1.img.gz | rbd import - kvmpool1/vm-101-disk-1
rbd: unable to get size of file/block device: (25) Inappropriate ioctl
for device
rbd: import failed: (25) Inappropriate ioctl for device
Greets,
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rbd import from stdin
2012-11-23 10:15 rbd import from stdin Stefan Priebe - Profihost AG
@ 2012-11-23 10:25 ` Alexandre DERUMIER
2012-11-23 10:43 ` Stefan Priebe - Profihost AG
0 siblings, 1 reply; 5+ messages in thread
From: Alexandre DERUMIER @ 2012-11-23 10:25 UTC (permalink / raw)
To: Stefan Priebe - Profihost AG; +Cc: ceph-devel
import for stdin already work like this:
rbd import --size=xxx - image < stdin
from this patch
http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/6315
(so I think you just need to specify --size)
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <s.priebe@profihost.ag>
À: ceph-devel@vger.kernel.org
Envoyé: Vendredi 23 Novembre 2012 11:15:11
Objet: rbd import from stdin
Hello,
i was looking at the wip-rbd-export-stdout branch which also allows to
import from stdin.
But it doesn't seem to work:
gzip -d -c vm-101-disk-1.img.gz | rbd import - kvmpool1/vm-101-disk-1
rbd: unable to get size of file/block device: (25) Inappropriate ioctl
for device
rbd: import failed: (25) Inappropriate ioctl for device
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
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rbd import from stdin
2012-11-23 10:25 ` Alexandre DERUMIER
@ 2012-11-23 10:43 ` Stefan Priebe - Profihost AG
2012-11-23 14:07 ` Stefan Priebe - Profihost AG
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-11-23 10:43 UTC (permalink / raw)
To: Alexandre DERUMIER; +Cc: ceph-devel
ah so right now the size parameter is needed. But i don't know the size
;-) file is gzip compressed ;-)
Stefan
Am 23.11.2012 11:25, schrieb Alexandre DERUMIER:
>
> import for stdin already work like this:
>
> rbd import --size=xxx - image < stdin
>
> from this patch
>
> http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/6315
>
>
> (so I think you just need to specify --size)
>
>
>
> ----- Mail original -----
>
> De: "Stefan Priebe - Profihost AG" <s.priebe@profihost.ag>
> À: ceph-devel@vger.kernel.org
> Envoyé: Vendredi 23 Novembre 2012 11:15:11
> Objet: rbd import from stdin
>
> Hello,
>
> i was looking at the wip-rbd-export-stdout branch which also allows to
> import from stdin.
>
> But it doesn't seem to work:
>
> gzip -d -c vm-101-disk-1.img.gz | rbd import - kvmpool1/vm-101-disk-1
> rbd: unable to get size of file/block device: (25) Inappropriate ioctl
> for device
> rbd: import failed: (25) Inappropriate ioctl for device
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rbd import from stdin
2012-11-23 10:43 ` Stefan Priebe - Profihost AG
@ 2012-11-23 14:07 ` Stefan Priebe - Profihost AG
2012-11-23 14:15 ` Alexandre DERUMIER
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-11-23 14:07 UTC (permalink / raw)
To: Alexandre DERUMIER; +Cc: ceph-devel
Hi,
even with size it does not work:
Am 23.11.2012 11:43, schrieb Stefan Priebe - Profihost AG:
> ah so right now the size parameter is needed. But i don't know the size
> ;-) file is gzip compressed ;-)
gzip -d -c vm-101-disk-1.img.gz | rbd import --size=42945478656 -
kvmpool1/vm-101-disk-1
rbd: image creation failed
2012-11-23 15:05:49.300363 7f5a599cc760 -1 librbd: rbd image
vm-101-disk-1 already existsrbd: import failed:
(17) File exists
Greets,
Stefan
> Stefan
> Am 23.11.2012 11:25, schrieb Alexandre DERUMIER:
>>
>> import for stdin already work like this:
>>
>> rbd import --size=xxx - image < stdin
>>
>> from this patch
>>
>> http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/6315
>>
>>
>> (so I think you just need to specify --size)
>>
>>
>>
>> ----- Mail original -----
>>
>> De: "Stefan Priebe - Profihost AG" <s.priebe@profihost.ag>
>> À: ceph-devel@vger.kernel.org
>> Envoyé: Vendredi 23 Novembre 2012 11:15:11
>> Objet: rbd import from stdin
>>
>> Hello,
>>
>> i was looking at the wip-rbd-export-stdout branch which also allows to
>> import from stdin.
>>
>> But it doesn't seem to work:
>>
>> gzip -d -c vm-101-disk-1.img.gz | rbd import - kvmpool1/vm-101-disk-1
>> rbd: unable to get size of file/block device: (25) Inappropriate ioctl
>> for device
>> rbd: import failed: (25) Inappropriate ioctl for device
>>
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rbd import from stdin
2012-11-23 14:07 ` Stefan Priebe - Profihost AG
@ 2012-11-23 14:15 ` Alexandre DERUMIER
0 siblings, 0 replies; 5+ messages in thread
From: Alexandre DERUMIER @ 2012-11-23 14:15 UTC (permalink / raw)
To: Stefan Priebe - Profihost AG; +Cc: ceph-devel
the target rbd volume must not exist.
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <s.priebe@profihost.ag>
À: "Alexandre DERUMIER" <aderumier@odiso.com>
Cc: ceph-devel@vger.kernel.org
Envoyé: Vendredi 23 Novembre 2012 15:07:42
Objet: Re: rbd import from stdin
Hi,
even with size it does not work:
Am 23.11.2012 11:43, schrieb Stefan Priebe - Profihost AG:
> ah so right now the size parameter is needed. But i don't know the size
> ;-) file is gzip compressed ;-)
gzip -d -c vm-101-disk-1.img.gz | rbd import --size=42945478656 -
kvmpool1/vm-101-disk-1
rbd: image creation failed
2012-11-23 15:05:49.300363 7f5a599cc760 -1 librbd: rbd image
vm-101-disk-1 already existsrbd: import failed:
(17) File exists
Greets,
Stefan
> Stefan
> Am 23.11.2012 11:25, schrieb Alexandre DERUMIER:
>>
>> import for stdin already work like this:
>>
>> rbd import --size=xxx - image < stdin
>>
>> from this patch
>>
>> http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/6315
>>
>>
>> (so I think you just need to specify --size)
>>
>>
>>
>> ----- Mail original -----
>>
>> De: "Stefan Priebe - Profihost AG" <s.priebe@profihost.ag>
>> À: ceph-devel@vger.kernel.org
>> Envoyé: Vendredi 23 Novembre 2012 11:15:11
>> Objet: rbd import from stdin
>>
>> Hello,
>>
>> i was looking at the wip-rbd-export-stdout branch which also allows to
>> import from stdin.
>>
>> But it doesn't seem to work:
>>
>> gzip -d -c vm-101-disk-1.img.gz | rbd import - kvmpool1/vm-101-disk-1
>> rbd: unable to get size of file/block device: (25) Inappropriate ioctl
>> for device
>> rbd: import failed: (25) Inappropriate ioctl for device
>>
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-23 14:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23 10:15 rbd import from stdin Stefan Priebe - Profihost AG
2012-11-23 10:25 ` Alexandre DERUMIER
2012-11-23 10:43 ` Stefan Priebe - Profihost AG
2012-11-23 14:07 ` Stefan Priebe - Profihost AG
2012-11-23 14:15 ` Alexandre DERUMIER
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.