targetcli fabric modules
Hi all,
I hope this is the right place to ask a general (possibly dumb) question about targetcli and fabric modules.
My target is Ubuntu 22.04.1 LTS and my initiator is ESXi 6.7. Both are using Mellanox MCX515A-CCAT connected via a single 100G QSFP28 DAC cable.
On the server, I've used "apt" to install the "targetcli-fb" package and have successfully configured it as an iSCSI target for my ESXi server.
However, I'm now trying to get ISER working and I'm noticing that when I start a "targetcli" session, I'm not seeing "Using iser fabric module" (or any "Using" messages for that matter) that I see in the snippet on linux-iscsi dot org/wiki/ISER (excellent site, BTW!).
My question: Do the fabric modules get loaded/enabled automatically (perhaps when it detects a ROCEv2 enabled NIC)? Or do I have to do explicitly do something to make this happen?
Thanks in advance!
Luis
Quoted 12 lines
Hi all,
I hope this is the right place to ask a general (possibly dumb) question about targetcli and fabric modules.
My target is Ubuntu 22.04.1 LTS and my initiator is ESXi 6.7. Both are using Mellanox MCX515A-CCAT connected via a single 100G QSFP28 DAC cable.
On the server, I've used "apt" to install the "targetcli-fb" package and have successfully configured it as an iSCSI target for my ESXi server.
Quoted 8 lines
However, I'm now trying to get ISER working and I'm noticing that when I start a "targetcli" session, I'm not seeing "Using iser fabric module" (or any "Using" messages for that matter) that I see in the snippet on linux-iscsi dot org/wiki/ISER (excellent site, BTW!).
My question: Do the fabric modules get loaded/enabled automatically (perhaps when it detects a ROCEv2 enabled NIC)? Or do I have to do explicitly do something to make this happen?
When setting a portal to iser enabled, the driver should be automatically loaded.
I just ran with ubuntu 22.04 and targetcli-fb:
--
/iscsi/iqn.20...c34978ad/tpg1> portals/0.0.0.0:3260 enable_iser true
iSER enable now: True
/iscsi/iqn.20...c34978ad/tpg1> ls
o- tpg1 ..................................................................................................... [no-gen-acls, no-auth]
o- acls
................................................................................................................ [ACLs: 0]
o- luns
................................................................................................................ [LUNs: 0]
o- portals
.......................................................................................................... [Portals: 1]
o- 0.0.0.0:3260
......................................................................................................... [iser] --
# targetcli --version /usr/bin/targetcli version 2.1.53
Quoted 17 lines
When setting a portal to iser enabled, the driver should be automatically loaded.
I just ran with ubuntu 22.04 and targetcli-fb:
--
/iscsi/iqn.20...c34978ad/tpg1> portals/0.0.0.0:3260enable_isertrue iSER enable now: True /iscsi/iqn.20...c34978ad/tpg1> ls o- tpg1
.....................................................................................................
[no-gen-acls, no-auth]
o- acls
................................................................................................................
[ACLs: 0]
o- luns
................................................................................................................
[LUNs: 0]
o- portals
..........................................................................................................
[Portals: 1]
Quoted 8 lines
o- 0.0.0.0:3260.........................................................................................................
[iser]
--# targetcli --version /usr/bin/targetcli version 2.1.53
Hi Sagi,
Thank you very much! I'm seeing exactly what you're seeing. But when you first start targetcli, do you see lines like the following?
Using ib_srpt fabric module.
Using qla2xxx fabric module.
Using iscsi fabric module.
Using iser fabric module.
Using loopback fabric module.
These are shown on the LIO ISER page but I'm not seeing anything like that.
The output on the LIO ISER page apparently comes from a targetcli version from 2014. My version (same as yours) indicates 2011-2013. So maybe the code that outputs that info was added to a version later than ours?
Best regards,
Luis
Hello,
čt 24. 11. 2022 v 22:31 odesílatel Luis Navarro <[email protected]> napsal:
Quoted 8 lines
Thank you very much! I'm seeing exactly what you're seeing. But when you first start targetcli, do you see lines like the following?
Using
ib_srptfabric module.
Using qla2xxx fabric module.
Using iscsi fabric module.
Using iser fabric module.
Using loopback fabric module.
I quickly looked at the targetcli git history and I think that those debug messages have been removed
since version v2.0rc1.fb7 (10 years ago)
Maurizio