Users Guide
9–iSER Configuration
Using iSER with iWARP on RHEL and SLES
193 AH0054602-00 M
3. Before configuring iSER targets, configure NIC interfaces and run L2 and
RoCE traffic, as described in Step 7 on page 153.
4. For SLES 15 and SLES 15 SP1, insert the SLES Package DVD and install
the targetcli utility. This command also installs all the dependency packages.
# zypper install python3-targetcli-fb
5. Start the targetcli utility, and configure your targets on the iSER target
system.
Using iSER with iWARP on RHEL and SLES
Configure the iSER initiator and target similar to RoCE to work with iWARP. You
can use different methods to create a Linux-IO (LIO
™
) target; one is listed in this
section. You may encounter some difference in targetcli configuration in SLES 12
and RHEL 7.x because of the version.
To configure a target for LIO:
1. Create an LIO target using the targetcli utility. Issue the following command:
# targetcli
targetcli shell version 2.1.fb41
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
2. Issue the following commands:
/> /backstores/ramdisk create Ramdisk1-1 1g nullio=true
/> /iscsi create iqn.2017-04.com.org.iserport1.target1
/> /iscsi/iqn.2017-04.com.org.iserport1.target1/tpg1/luns create /backstores/ramdisk/Ramdisk1-1
/> /iscsi/iqn.2017-04.com.org.iserport1.target1/tpg1/portals/ create 192.168.21.4 ip_port=3261
/> /iscsi/iqn.2017-04.com.org.iserport1.target1/tpg1/portals/192.168.21.4:3261 enable_iser
boolean=true
/> /iscsi/iqn.2017-04.com.org.iserport1.target1/tpg1 set attribute authentication=0
demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1
/> saveconfig
NOTE
targetcli versions are different in RHEL and SLES. Be sure to use the
proper backstores to configure your targets:
RHEL uses ramdisk
SLES uses rd_mcp