I had the same problem before, mine is CentOS, and when I created
/iscsi/create iqn_bla-bla
it goes
ocal LIO instance already has LIO configured with a target - unable to
 continue



then finally the solution happened to be, turn off target service

systemctl stop target
systemctl disable target


somehow they are doing the same thing, you need to disable 'target' service
(targetcli) in order to allow gwcli (rbd-target-api) do it's job.

Cheers
Joshua

On Thu, Jan 4, 2018 at 2:39 AM, Mike Christie <mchri...@redhat.com> wrote:

> On 12/25/2017 03:13 PM, Joshua Chen wrote:
> > Hello folks,
> >   I am trying to share my ceph rbd images through iscsi protocol.
> >
> > I am trying iscsi-gateway
> > http://docs.ceph.com/docs/master/rbd/iscsi-overview/
> >
> >
> > now
> >
> > systemctl start rbd-target-api
> > is working and I could run gwcli
> > (at a CentOS 7.4 osd node)
> >
> > gwcli
> > /> ls
> > o- /
> > ............................................................
> .............................................................
> > [...]
> >   o- clusters
> > ............................................................
> ............................................
> > [Clusters: 1]
> >   | o- ceph
> > ............................................................
> ................................................
> > [HEALTH_OK]
> >   |   o- pools
> > ............................................................
> ..............................................
> > [Pools: 1]
> >   |   | o- rbd
> > ............................................................
> ...............
> > [(x3), Commit: 0b/25.9T (0%), Used: 395M]
> >   |   o- topology
> > ............................................................
> ....................................
> > [OSDs: 9,MONs: 3]
> >   o- disks
> > ............................................................
> ..............................................
> > [0b, Disks: 0]
> >   o- iscsi-target
> > ............................................................
> .........................................
> > [Targets: 0]
> >
> >
> > but when I created iscsi-target, I got
> >
> > Local LIO instance already has LIO configured with a target - unable to
> > continue
> >
> >
> > /> /iscsi-target create
> > iqn.2003-01.org.linux-iscsi.ceph-node1.x8664:sn.571e1ab51af2
> > Local LIO instance already has LIO configured with a target - unable to
> > continue
> > />
> >
>
>
> Could you send the output of
>
> targetcli ls
>
> ?
>
> What distro are you using?
>
> You might just have a target setup from a non gwcli source. Maybe from
> the distro targetcli systemd tools.
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to