1.主机安装nfs客户端:
yum -y install nfs-utils
modprobe sunrpc
lsmod|grep sunrpc
2.查看nfs请求数量:
cat /proc/sys/sunrpc/tcp_slot_table_entries
3.修改限制数量:
echo "options sunrpc tcp_slot_table_entries=128" >> /etc/modprobe.d/sunrpc.conf
echo "options sunrpc tcp_max_slot_table_entries=128" >> /etc/modprobe.d/sunrpc.conf
sysctl -w sunrpc.tcp_slot_table_entries=128
4.挂载
V3 Mount:
sudo mount -t nfs -o vers=3,nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport xxx.yyy.abcs.com:/ /data
参考:https://help.aliyun.com/document_detail/90529.html