On 11/06/2014 06:37 AM, Gagandeep Arora wrote: > Hello, > > I am running ceph firefly with the cluster name cephprod and trying to > create a lun with the following options: > tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 > --backing-store iscsi-spin/test-dr --bstype rbd > --bsopts="conf=/etc/ceph/cephprod.conf" > > but it fails with the error. The log message is: > > tgtd: tgt_device_create(626) bsopts=conf=/etc/ceph/cephprod.conf > tgtd: bs_rbd_init(519) bs_rbd_init bsopts: "conf=/etc/ceph/cephprod.conf" > tgtd: bs_rbd_init(540) bs_rbd_init: confname /etc/ceph/cephprod.conf > tgtd: bs_rbd_init(542) bs_rbd_init bsopts= > tgtd: bs_rbd_init(565) bs_rbd_init: rados_connect: -2 > > > I believe it needs a cluster name so I also tried with the option > clusterprod: > tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 > --backing-store iscsi-spin/test-dr --bstype rbd > --bsopts="conf=/etc/ceph/prod.conf;cluster=prod" it fails with the > following message: > tgtd: mtask_execute(501) 211 1 2 0 1 0 1 > path=iscsi-spin/gpsfile-dr,bstype=rbd,bsopts=conf=/etc/ceph/cephprod.conf;cluster=cephprod > 12866 > tgtd: device_mgmt(246) sz:91 > params:path=iscsi-spin/gpsfile-dr,bstype=rbd,bsopts=conf=/etc/ceph/cephprod.conf;cluster=cephprod > tgtd: tgt_device_create(489) 1 1 > tgtd: tgt_device_create(626) > bsopts=conf=/etc/ceph/cephprod.conf;cluster=cephprod > tgtd: bs_rbd_init(519) bs_rbd_init bsopts: > "conf=/etc/ceph/cephprod.conf;cluster=cephprod" > tgtd: bs_rbd_init(531) bs_rbd: ignoring unknown option "" > tgtd: bs_rbd_init(540) bs_rbd_init: confname /etc/ceph/cephprod.conf > tgtd: bs_rbd_init(542) bs_rbd_init bsopts=;cluster=cephprod > tgtd: bs_rbd_init(565) bs_rbd_init: rados_connect: -2 > > > Would some one know how to configure tgt with a cluster name other than > "ceph" > Looking at the code you need to supply a clientid as well. See this: https://github.com/fujita/tgt/blob/master/usr/bs_rbd.c#L598 Wido > > Regards, > Gagan > > > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Wido den Hollander 42on B.V. Ceph trainer and consultant Phone: +31 (0)20 700 9902 Skype: contact42on _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com