* ceph and scsi reservation-like locking
@ 2013-12-29 2:34 James Harper
2013-12-30 21:43 ` Josh Durgin
0 siblings, 1 reply; 2+ messages in thread
From: James Harper @ 2013-12-29 2:34 UTC (permalink / raw)
To: ceph-devel@vger.kernel.org
Is the rbd locking feature-compatible with scsi3 persistent reservations?
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.
Thanks
James
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ceph and scsi reservation-like locking
2013-12-29 2:34 ceph and scsi reservation-like locking James Harper
@ 2013-12-30 21:43 ` Josh Durgin
0 siblings, 0 replies; 2+ messages in thread
From: Josh Durgin @ 2013-12-30 21:43 UTC (permalink / raw)
To: James Harper, ceph-devel@vger.kernel.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-30 21:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-29 2:34 ceph and scsi reservation-like locking James Harper
2013-12-30 21:43 ` Josh Durgin
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.