Help to make iSER working

Max Gurtovoy maxg at mellanox.com
Thu Aug 11 13:45:48 UTC 2016


These are the instructions I get from iscsi maintainer that merged our 
code to FreeBSD-11:
1. set WITH_OFED=yes in /etc/make.conf
2. "make buildkernel buildworld installkernel installworld"
3. reboot
4. kldload iser

After that, make sure you configured all the interfaces correctly and 
that you have ping between the 2 servers.
later you need to check basic RDMA stuff on your servers (Added 
Hans/Oded/Meny to help you if needed).

Only if the above are working you can proceed to check iser.

Max.

On 8/11/2016 4:22 PM, Ben RUBSON wrote:
> I just tested to connect to a Linux iSER enabled target, but I still get this error message at initiator side :
> iscsid[1187]: 192.168.2.2 (iqn.2012-06.com.test:target1): failed to connect to 192.168.2.2 using ICL kernel proxy: ISCSIDCONNECT: Invalid argument
>
>> as if my initiator did not understand the iSER command "ISCSIDCONNECT".
>> How to be sure everything is correctly compiled with ICL_KERNEL_PROXY enabled ?
>
> Ben
>
>
>> On 10 Aug 2016, at 22:51, Max Gurtovoy <maxg at mellanox.com> wrote:
>>
>> Hi Ben,
>>
>> iSER initiator is supported in FreeBSD-11 but not the iser target.
>> for the target you should use Linux target such as TGT (user space),
>> Lio or SCST.
>>
>> thanks,
>> Max.
>>
>>
>> On 8/10/2016 8:13 PM, Ben RUBSON wrote:
>>> Hello,
>>>
>>> I have some difficulties to make iSER (FreeBSD 11 BETA3) working.
>>>
>>>
>>>
>>> ### My configuration :
>>>
>>> 2 servers with Mellanox ConnectX-3 NICs.
>>>
>>>
>>>
>>> ### What I did :
>>>
>>> I rebuilt kernel adding the following to GENERIC :
>>> options OFED
>>> device mlxen
>>> options COMPAT_LINUXKPI
>>>
>>> I built iser :
>>> cd /usr/src/sys/modules/iser/ ; make ; make install ; kldload iser
>>> (I saw later-on that I could have used "device iser" in kernel configuration)
>>>
>>> My /etc/ctl.conf :
>>> portal-group pg0 {
>>>  discovery-auth-group no-authentication
>>>  listen 192.168.2.2
>>>  offload iser
>>> }
>>> target iqn.2012-06.com.test:target1 {
>>>  auth-group no-authentication
>>>  portal-group pg0
>>>  alias my-iser-disk
>>>  lun 0 {
>>>    path /dev/da8
>>>  }
>>> }
>>>
>>>
>>>
>>> ### Error :
>>>
>>> As soon as I do the following :
>>> iscsictl -A -r -t iqn.2012-06.com.test:target1 -p 192.168.2.2
>>> I get this error :
>>> iscsid[1187]: 192.168.2.2 (iqn.2012-06.com.test:target1): failed to connect to 192.168.2.2 using ICL kernel proxy: ISCSIDCONNECT: Invalid argument
>>> iscsid[655]: child process 1187 terminated with exit status 1
>>>
>>> "sysctl hw.mlxen1.stat.tx_packets" on initiator shows that no packet is sent at all when trying to connect.
>>>
>>> Did I miss something ?
>>>
>>> Many thanks !
>>>
>>> Ben
>>>
>>> _______________________________________________
>>> freebsd-scsi at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
>>> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe at freebsd.org"
>>>
>
> _______________________________________________
> freebsd-scsi at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe at freebsd.org"
>


More information about the freebsd-scsi mailing list