Skip to contentSkip to conversation

rbd export to stdout ?

DISCUSSION Alexandre DERUMIER 3 participants 7 messages Oct 22, 2012 – Oct 23, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 44be67bb-921b-4115-a4ea-fb4980b17edd@mailpro

#1 lore raw

Hi,

I'm looking for use "rbd export " to stdout and not a file.

Is it possible ? any hint ?

Regards,

Alexandre Derumier

#2 lore raw
Quoted 6 lines · Alexandre DERUMIER

Hi,

I'm looking for use "rbd export " to stdout and not a file.

Is it possible ? any hint ?

No, not at this moment. I tried a fifo, but that won't work due to O_EXCL and O_CREATE the rbd command uses.

I think it should be possible to export to stdout, but it will require some code changes.

I created a feature request for it: http://tracker.newdream.net/issues/3380

Wido

Quoted 8 lines

Regards,

Alexandre Derumier
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

ok,
thanks Wido.

Regards,

Alexandre

----- Mail original -----

De: "Wido den Hollander" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: [email protected]
Envoyé: Lundi 22 Octobre 2012 13:58:40
Objet: Re: rbd export to stdout ?

Quoted 6 lines · Alexandre DERUMIER

Hi,

I'm looking for use "rbd export " to stdout and not a file.

Is it possible ? any hint ?

No, not at this moment. I tried a fifo, but that won't work due to O_EXCL and O_CREATE the rbd command uses.

I think it should be possible to export to stdout, but it will require some code changes.

I created a feature request for it: http://tracker.newdream.net/issues/3380

Wido

Quoted 8 lines

Regards,

Alexandre Derumier

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

note:

import for stdin already work:

rbd import --size=xxx - image < stdin

from this patch

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/6315

----- Mail original -----

De: "Alexandre DERUMIER" <[email protected]>
À: "Wido den Hollander" <[email protected]>
Cc: [email protected]
Envoyé: Lundi 22 Octobre 2012 14:25:33
Objet: Re: rbd export to stdout ?

ok,
thanks Wido.

Regards,

Alexandre

----- Mail original -----

De: "Wido den Hollander" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: [email protected]
Envoyé: Lundi 22 Octobre 2012 13:58:40
Objet: Re: rbd export to stdout ?

Quoted 6 lines · Alexandre DERUMIER

Hi,

I'm looking for use "rbd export " to stdout and not a file.

Is it possible ? any hint ?

No, not at this moment. I tried a fifo, but that won't work due to O_EXCL and O_CREATE the rbd command uses.

I think it should be possible to export to stdout, but it will require some code changes.

I created a feature request for it: http://tracker.newdream.net/issues/3380

Wido

Quoted 8 lines

Regards,

Alexandre Derumier

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 7 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw
In reply to Wido den Hollander
Quoted 6 lines

Subject: Re: rbd export to stdout ?

Quoted 3 lines · Alexandre DERUMIER

Hi,

I'm looking for use "rbd export " to stdout and not a file.

I thought we should extend 'qemu-img', adding import/export there? That way it would work for all qemu storage drivers?

#6 lore raw
Quoted 2 lines
Quoted 2 lines

I thought we should extend 'qemu-img', adding import/export there? That way it would work for all qemu storage drivers?

seem to be already possible:

http://ceph.com/wiki/QEMU-RBD

"qemu-img convert -f qcow2 -O rbd /data/debian_lenny_amd64_small.qcow2 rbd:data/lenny"

----- Mail original -----

De: "Dietmar Maurer" <[email protected]>
À: "Wido den Hollander" <[email protected]>, "Alexandre DERUMIER" <[email protected]>
Cc: [email protected]
Envoyé: Lundi 22 Octobre 2012 16:31:00
Objet: RE: rbd export to stdout ?

Quoted 6 lines

Subject: Re: rbd export to stdout ?

Quoted 3 lines · Alexandre DERUMIER

Hi,

I'm looking for use "rbd export " to stdout and not a file.

I thought we should extend 'qemu-img', adding import/export there? That way it would work for all qemu storage drivers?
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

I thought we should extend 'qemu-img', adding import/export there? That way it would work for all qemu storage drivers?

seem to be already possible:

http://ceph.com/wiki/QEMU-RBD

"qemu-img convert -f qcow2 -O rbd /data/debian_lenny_amd64_small.qcow2 rbd:data/lenny"

Oh - I missed that. Thanks for the hint.