[iscsictl] connection to invalid target

RA H rah.lists at gmail.com
Thu Jul 2 19:40:33 UTC 2015


On Thu, Jul 2, 2015 at 4:32 AM, Edward Tomasz Napierała <trasz at freebsd.org>
wrote:

> So basically it's not a FreeBSD bug?
>

Correct.


> The problem here is that the discovery is performed by iscsid; the way
> to implement it would be to make iscsictl add the discovery session, wait
> for iscsid to finish discovery but not connect to the targets, report
> targets, and then remove them.  So basically pretty much what you are
> doing anyway.
>

But that's not what I'm doing because I have no idea how to do discovery
only through any means. Roughly, my process is as follows:

* Get list of connected targets (iscsictl -L)
* Do discovery+login (iscsictl -Ad <target ip>)
* Get list of connected targets (iscsictl -L)
* Filter newly connected targets
* Compare newly connected target names to user-input target name
   and disconnect non-matching sessions

If you could demonstrate how to implement the process you described
above I'd be incredibly greatful. Also, apologies for not keeping this
on the ML, I'm new at this...


More information about the freebsd-scsi mailing list