8–iWARP Configuration
Configuring iWARP on Linux
175
AH0054602-00 J
Configuring NFS-RDMA
NFS-RDMA for iWARP includes both server and client configuration steps.
To configure the NFS server:
1.
Create an
nfs-server
directory and grant permission by issuing the
following commands:
#
mkdir /tmp/nfs-server
#
chmod 777 /tmp/nfs-server
2.
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 *(rw,fsid=0,async,insecure,no_root_squash)
Ensure that you use a different file system identification (FSID) for each
directory that you export.
3.
Load the svcrdma module as follows:
#
modprobe svcrdma
4.
Load the service as follows:
For SLES, enable and start the NFS server alias:
#
systemctl enable|start|status nfsserver
For RHEL, enable and start the NFS server and services:
#
systemctl enable|start|status nfs
5.
Include the default RDMA port 20049 into this file as follows:
#
echo rdma 20049 > /proc/fs/nfsd/portlist
6.
To make local directories available for NFS clients to mount, issue the
exportfs
command as follows:
#
exportfs -v
NOTE
For latency applications (send/write), if the perftest version is the latest (for
example,
perftest-3.0-0.21.g21dc344.x86_64.rpm
), use the supported
inline size value:
0-128
.