#加载驱动
服务器:modprobe xprtrdma
modprobe svcrdma
客户端:modprobe xprtrdma
#配置nfs
服务器:/home/in 192.168.1.1/24(rw,sync,no_root_squash)
vim /etc/exports
exportfs -r
exportfs
systemctl restart rpcbind nfs-server
echo rdma 2050 > /proc/fs/nfsd/portlist
cat /proc/fs/nfsd/portlist
客户端:
systemctl restart rpcbind
mount.nfs 182.168.2.49:/mnt/sdb/nfs /mnt/ssd/nfs -o vers=3,rdma,port=2050,wsize=65536,rsize=65536
#卸载NFS-RDMA
rmmod iw_cxgb4
原文地址:https://www.cnblogs.com/niezhongle/p/11062548.html
时间: 2024-10-20 01:51:28