9–iSER Configuration
Using iSER with iWARP on RHEL and SLES
184
AH0054602-00 J
4.
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