8–iSER Configuration
Configuring iSER for Ubuntu
104
AH0054601-00 B
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
2.
Change the transport mode to
iser
as follows:
#
iscsiadm -m node -o update -T iqn.2017-04.com.org.iserport1.target1 -n
iface.transport_name -v iser
3.
Log into the target using port 3261:
#
iscsiadm -m node -l -p 192.168.21.4:3261 -T iqn.2017-04.com.org.iserport1.target1
Logging in to [iface: iser, target: iqn.2017-04.com.org.iserport1.target1,
portal: 192.168.21.4,3261] (multiple)
Login to [iface: iser, target: iqn.2017-04.com.org.iserport1.target1, portal:
192.168.21.4,3261] successful.
4.
Ensure that those LUNs are visible by issuing the following command:
#
lsscsi
[1:0:0:0] storage HP P440ar 3.56 -
[1:1:0:0] disk HP LOGICAL VOLUME 3.56 /dev/sda
[6:0:0:0] cd/dvd hp DVD-ROM DUD0N UMD0 /dev/sr0
[7:0:0:0] disk LIO-ORG Ramdisk1-1 4.0 /dev/sdb
Configuring iSER for Ubuntu
To configure iSER, you must first configure RoCE, and then configure the target
and initiator devices as described in the following sections:
Configuring LIO as Target
To configure the Linux-IO (LIO) as a target:
1.
Install targetcli by issuing the following command:
#
sudo apt-get install targetcli
2.
To enter the LIO CLI console, issue the
targetcli
command:
root@captain:~#
targetcli
targetcli GIT_VERSION (rtslib GIT_VERSION)
Copyright (c) 2011-2013 by Datera, Inc.