9–iWARP Configuration
Configuring iWARP on Linux
132
AH0054602-00 A
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 NFS-RDMA
NFS-RDMA for iWARP includes both server and client configuration steps.
To configure the NFS server:
1.
In the
/etc/exports
file for the directories that you must export using
NFS-RDMA on the server, make the following entry:
/tmp/nfs-server *(fsid=0,async,insecure,no_root_squash)
Ensure that you use a different file system identification (FSID) for each
directory that you export.
2.
Load the xprtrdma and svcrdma modules as follows:
#
modprobe xprtrdma
#
modprobe svcrdma
3.
Start the NFS service without any errors:
#
service nfs start
4.
Include the default RDMA port 20049 into this file as follows:
#
echo rdma 20049 > /proc/fs/nfsd/portlist
5.
To make local directories available for NFS clients to mount, issue the
exportfs
command as follows:
#
exportfs -v