All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Mick <dan.mick@inktank.com>
To: stgt@vger.kernel.org
Cc: ceph-devel <ceph-devel@vger.kernel.org>
Subject: tgt backend driver for Ceph block devices (rbd)
Date: Wed, 16 Jan 2013 18:47:14 -0800	[thread overview]
Message-ID: <50F76632.4040404@inktank.com> (raw)

Hi, all.  I recently hacked at bs_rdwr and made it work as a 
proof-of-concept driver allowing tgt to be backed by the Ceph[1] storage 
cluster's RADOS block device (rbd)[2].  I thought I'd share the results 
of my investigations, as it's useful even in its current form:

http://github.com/dmick/tgt, forked from http://github.com/fujita/tgt
branch bs_rbd (https://github.com/dmick/tgt/tree/bs_rbd)

This is a simple transliteration of bs_rdwr to use librbd/librados
calls instead of normal file I/O calls (so might be instructive to diff 
bs_rbd.c against bs_rdwr.c to see what was involved).  It currently uses 
only the synchronous librbd interfaces, so each tgtd worker thread will 
block for completion of each request.  See the commit comment
for usage advice.

For those with less exposure to Ceph:

Ceph is a distributed storage system, and rbd provides a block-device 
abstraction to that storage that can be used directly from the kernel or 
from a userland library and things built on it.  That is:

1) you can create rbd images in the cluster, and then expose them as
kernel block devices to machines that talk to the cluster

2) You can create rbd images in the cluster, and then expose them to 
qemu-kvm virtual machines without kernel support (by using 
librbd/librados to access the cluster).

bs_rbd adds another access path: exposing rbd images as iSCSI targets
with strictly-userland code.

I was quite impressed at how easy this was, and how well-organized the 
stgt source is.  Kudos to the developers and maintainers!

--

[1] http://ceph.com, http://ceph.com/docs
[2] http://ceph.com/ceph-storage/block-storage/

             reply	other threads:[~2013-01-17  2:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17  2:47 Dan Mick [this message]
2013-01-18 16:29 ` tgt backend driver for Ceph block devices (rbd) FUJITA Tomonori

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=50F76632.4040404@inktank.com \
    --to=dan.mick@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=stgt@vger.kernel.org \
    /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.