9–iWARP Configuration
Configuring iWARP on Linux
131
AH0054602-00 A
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 9-6. LIO Target Configuration
To configure an initiator for iWARP:
1.
To discover the iSER LIO target using port 3261, issue the
iscsiadm
command as follows:
#
iscsiadm -m discovery -t st -p 192.168.21.4:3261 -I iser
192.168.21.4:3261,1 iqn.2017-04.com.org.iserport1.target1