CEPH filesystem development
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@inktank.com>
To: James Harper <james.harper@bendigoit.com.au>,
	"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: ceph and scsi reservation-like locking
Date: Mon, 30 Dec 2013 13:43:14 -0800	[thread overview]
Message-ID: <52C1E8F2.6060107@inktank.com> (raw)
In-Reply-To: <6035A0D088A63A46850C3988ED045A4B68567948@BITCOM1.int.sbss.com.au>

On 12/28/2013 06:34 PM, James Harper wrote:
> Is the rbd locking feature-compatible with scsi3 persistent reservations?

It wasn't designed with scsi-3 exactly in mind, but using exclusive
locks and fencing might suffice.

To fence a client, you'd get its address from rbd_list_lockers() and
blacklist it with the 'ceph osd blacklist add' command, which can be
done via rados_mon_command() these days.

Blacklisting adds an entry in the osdmap so osds return an error when
blacklisted clients try to access them. By default a blacklist entry
expires after 1 hour.

> To use ceph as a storage backend for a Hyper-V cluster directly (rather than through an iscsi gateway), it looks like I'll need a virtual scsi3 device that supports persistent reservations.

I'm not sure exactly what parts of persistent reservations Hyper-V
relies on - let us know how it goes!

Josh

      reply	other threads:[~2013-12-30 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-29  2:34 ceph and scsi reservation-like locking James Harper
2013-12-30 21:43 ` Josh Durgin [this message]

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=52C1E8F2.6060107@inktank.com \
    --to=josh.durgin@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=james.harper@bendigoit.com.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox