8–iSER Configuration
Using iSER with iWARP on RHEL and SLES
103
AH0054601-00 B
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 Target (LIO
™
); 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
shows the target configuration for LIO.
Figure 8-5. LIO Target Configuration