Skip to content

Instantly share code, notes, and snippets.

@mpiscaer
Created April 20, 2016 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpiscaer/43d495a0986f77edf9e3c5c36099f47d to your computer and use it in GitHub Desktop.
Save mpiscaer/43d495a0986f77edf9e3c5c36099f47d to your computer and use it in GitHub Desktop.
root@ceph-client-01-[LOC]:~# ceph -s
cluster 8be348fe-3cdd-443f-a69e-c2693846dc45
health HEALTH_OK
monmap e4: 3 mons at {0=10.114.160.50:6789/0,1=10.114.160.51:6789/0,2=10.114.160.52:6789/0}
election epoch 92, quorum 0,1,2 0,1,2
mdsmap e79: 1/1/1 up {0=b=up:active}, 1 up:standby
osdmap e7101: 28 osds: 28 up, 28 in
flags sortbitwise
pgmap v1311491: 3840 pgs, 6 pools, 275 GB data, 90681 objects
586 GB used, 21748 GB / 22334 GB avail
3840 active+clean
client io 8600 kB/s wr, 375 op/s
root@ceph-client-01-[LOC]:~# tgtadm --lld iscsi --mode system --op show
System:
State: ready
debug: off
LLDs:
iscsi: ready
iser: error
Backing stores:
rbd (bsoflags sync:direct)
sheepdog
bsg
sg
null
ssc
rdwr (bsoflags sync:direct)
Device types:
disk
cd/dvd
osd
controller
changer
tape
passthrough
iSNS:
iSNS=Off
iSNSServerIP=
iSNSServerPort=3205
iSNSAccessControl=Off
root@ceph-client-01-[LOC]:~# tgtadm --lld iscsi --mode target --op new --tid 1 --targetname rbd
root@ceph-client-01-[LOC]:~# tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 --backing-store "data/iscsi-image" --bstype rbd --bsopts "conf=/etc/ceph/ceph.conf;id=admin"
tgtadm: invalid request
root@ceph-client-01-[LOC]:~#
/var/log/syslog:
Apr 20 12:58:28 ceph-client-01 tgtd: device_mgmt(246) sz:74 params:path=data/iscsi-image,bstype=rbd,bsopts=conf=/etc/ceph/ceph.conf;id=admin
Apr 20 12:58:28 ceph-client-01 tgtd: bs_rbd_init(531) bs_rbd: ignoring unknown option ""
Apr 20 12:58:28 ceph-client-01 tgtd: bs_rbd_init(540) bs_rbd_init: confname /etc/ceph/ceph.conf
Apr 20 12:58:28 ceph-client-01 tgtd: bs_rbd_init(542) bs_rbd_init bsopts=;id=admin
Apr 20 12:58:28 ceph-client-01 tgtd: bs_thread_open(412) 16
Apr 20 12:58:28 ceph-client-01 tgtd: bs_rbd_open(432) bs_rbd_open: pool: data image: iscsi-image snap:
Apr 20 12:58:28 ceph-client-01 tgtd: bs_rbd_open(442) bs_rbd_open: rbd_open: -2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment