Users Guide
8–iWARP 配置
在 Linux 上配置 iWARP
183 AH0054602-05 M
2. 在 /etc/exports 文件中,对您必须使用服务器上 NFS-RDMA 导出的目
录,创建以下条目:
/tmp/nfs-server *(rw,fsid=0,async,insecure,no_root_squash)
确保对您导出的每个目录使用不同的文件系统标识 (FSID)。
3. 请如下加载 svcrdma 模块:
# modprobe svcrdma
4. 加载服务如下:
对于 SLES,启用并启动 NFS 服务器别名:
# systemctl enable|start|status nfsserver
对于 RHEL,启用并启动 NFS 服务器和服务:
# systemctl enable|start|status nfs
5. 请如下在此文件中包括默认 RDMA 端口 20049:
# echo rdma 20049 > /proc/fs/nfsd/portlist
6. 要使本地目录可供 NFS 客户端进行装载,请如下发出 exportfs 命令:
# exportfs -v
要配置 NFS 客户端:
1. 通过发出以下命令创建 nfs-client 目录并授予权限:
# mkdir /tmp/nfs-client
# chmod 777 /tmp/nfs-client
2. 请如下加载 xprtrdma 模块:
# modprobe xprtrdma
3. 根据您的版本,装载 NFS 文件系统:
对于 NFS 版本 3:
# mount -o rdma,port=20049 192.168.2.4:/tmp/nfs-server
/tmp/nfs-client
注
此 NFS 客户端配置程序也适用于 RoCE。