I'm going to re-export ceph into iSCSI, but I can't do this. Looks like epel package scsi-target-utils in CentOS 7 compiled without rbd support.
When I run:
$ sudo tgtadm --lld iscsi --mode system --op show
System:
State: ready
debug: off
LLDs:
iscsi: ready
iser: error
Backing stores:
sheepdog
bsg
sg
null
ssc
smc (bsoflags sync:direct)
mmc (bsoflags sync:direct)
rdwr (bsoflags sync:direct)
aio
Device types:
disk
cd/dvd
osd
controller
changer
tape
passthrough
iSNS:
iSNS=Off
iSNSServerIP=
iSNSServerPort=3205
iSNSAccessControl=Off
I don't see any ceph related strings. As noted on ceph site the rbd support patch has been accepted into the mainline of tgt repository.
How to enable rbd support into scsi-target-utils package in CentOS 7?
As I investigated, rbd support actually disabled in scsi-target-utils package. You can see it if you install it's SRPM and look at SPEC file of this package.
Here are 7-8 lines of this file:
Also there is an additional dependency for this backstore in scsi-target-utils. You will need to install ceph-devel package (could be fetched from ceph repos).
So, to install scsi-target-utils with rbd support you need to do actions below:
Or in Bash language:
After installation was finished start tgtd daemon and check for available components: