Please enable Javascript to view the contents
NFS Over RDMA
1. 前置条件
存储与使用的节点组成 RDMA 网络
RDMA 设备已经配置了 IP 地址
2. 服务端启动
1
| apt install nfs-kernel-server rdma-core -y
|
1
| echo 'rdma 20049' | tee /proc/fs/nfsd/portlist
|
1
2
3
| vim /etc/exports
/data/nfs *(rw,sync,no_root_squash,no_all_squash)
|
1
| systemctl start nfs-server.service
|
1
2
3
| exportfs -v
/data/nfs <world>(rw,wdelay,no_root_squash,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash
|
3. 客户端挂载
1
| apt install nfs-common rdma-core -y
|
1
| mkdir /data/host-rdma-nfs
|
1
| mount -o proto=rdma,port=20049,vers=4 x.x.x.x:/data/nfs /data/host-rdma-nfs
|
4. 参考