On Tuesday, May 1, 2018 at 8:31:49 AM UTC-7, Ciprian Dorin Craciun wrote:
>
> Hello all! 
>
> I'm using `open-iscsi` version `2.0.873` on OpenSUSE 13.2, and I am trying 
> to connect to a Linux LIO-based target with the following command: 
>
> ~~~~ 
> iscsiadm --mode node --portal IP:3260,1 --login 
> ~~~~ 
>
> And for some reason it creates two sessions: 
>
> ~~~~ 
> Logging in to [iface: default, target: iqn.2018-04.XXX, portal: IP,3260] 
> (multiple) 
> Logging in to [iface: default, target: iqn.2018-04.XXX, portal: IP,3260] 
> (multiple) 
> Login to [iface: default, target: iqn.2018-04.XXX, portal: IP,3260] 
> successful. 
> Login to [iface: default, target: iqn.2018-04.XXX, portal: IP,3260] 
> successful. 
> ~~~~ 
>
> I have not touched the standard configuration file `/etc/iscsid.conf`. 
>
> I do have multiple VLAN's defined on my initiator network interface (i.e. 
> `eth0.1`, `eth0.2`, etc.), but only one of them is configured (thus `eth0` 
> is `LOWER_UP` and `eth0.2` is `LOWER_UP,UP`.)  On the target there are 
> multiple network interfaces but only one is configured and up (without 
> VLAN's). 
>
> I do have installed `multipath-tools` on the initiator, and the `dm_mpath` 
> module (and related) are loaded -- but this is the standard behaviour of 
> OpenSUSE. 
>
>
> Therefore my question is: 
> * why does it insist on initiating multiple sessions? 
> * how can I convince `iscsiadm` to create only one session? 
>
> Thanks, 
> Ciprian. 
>

Open-iscsi is connecting to the target you've specified in every way
that it can, since you did not specify otherwise.

Have you done discovery? What is the output of "iscsiadm -m node -P1"?

Once you are connected, what is the output of "iscsiadm -m session -P1"?

I'm guessing, though, that you can restrict your connections by using
an "interface" file. See /etc/iscsi/ifaces/iface.example. By using an
interface file, you can restrict your connection to a particular NIC, for
example. Then you specify "-I IFACE" on your discovery request.
Enter code here...


-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to