[iscsictl] connection to invalid target

Edward Tomasz Napierała trasz at FreeBSD.org
Fri Jul 3 11:03:13 UTC 2015


On 0702T1540, RA H wrote:
> 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...

Perhaps I could make myself more clear on this: what I was describing
above is a theoretical way this could be implemented, not an existing
functionality.  The bottom line is: the way it could be done is very
similar to what you're doing "by hand", as you described above.



More information about the freebsd-scsi mailing list