安装工作(客户端可以在openvpn上浏览nfs并执行一些工作和文件传输),但是有些地方出错了,因为NFS/OpenVPN挂载将失败/冻结中间传输,并且(除其他外)阻止客户端重新启动。在这些时候发出#挂载-l只会挂起那个终端。
客户机是arch (现在使用rpcbind),服务器是ubuntu服务器(我认为它使用portmap,如果这是相关的话)。
Fstab包含如下设置:
10.8.0.1:/ /mnt/vpn nfs4 _netdev,udp,bg,intr,auto 0 0
# mount -l
10.8.0.1:/ on /mnt/vpn type nfs4 (rw,relatime,vers=4.0,rsize=32768,wsize=32768,namlen=255,hard,proto=udp,timeo=11,retrans=3,sec=sys,clientaddr=192.168.xxx.xxx,local_lock=none,addr=10.8.0.1,_netdev)"bg“就是这样,当事情以错误的顺序开始时,vpn不会冻结引导。我相信,"udp“是默认的。"intr“应该允许中断。
VPN的总体性能很差/很慢。除了客户端挂载选项之外,我还有点不清楚还有什么会影响到这一点。欣赏任何有关nfs4的信息/资源,而不是openvpn和/或任何其他的见解或建议。谢谢。
编辑:
cat /etc/exports
/nfs4 10.8.0.0/24(rw,nohide,sync,insecure,root_squash,no_subtree_check,fsid=0)
cat /etc/default/nfs-kernel-server
# Number of servers to start up
# To disable nfsv4 on the server, specify '--no-nfs-version 4' here
RPCNFSDCOUNT=8
# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0
# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information,
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
RPCMOUNTDOPTS=--manage-gids
# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=no
# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=
# Options for rpc.nfsd.
RPCNFSDOPTS=发布于 2012-05-26 10:31:52
我不认为udp多年来一直是默认传输,除非您是一个老练的用户,并且对此有很好的理解,我建议删除该选项,或者显式地切换回更可靠的TCP。
您还可能希望将/etc/exports文件中的选项添加到您的问题中以供参考,并添加来自/etc/sysconfig/nfs的任何配置选项。
我希望看到一些错误记录到/var/log/messages中,所以您可能希望检查该文件中的任何消息,并报告这些消息。
1) http://linux.die.net/man/5/nfs -传输方法
TCP是所有现代NFS实现所使用的默认传输协议。它在几乎所有可以想象的网络环境中都表现良好,并为防止网络不可靠造成的数据损坏提供了极好的保证。TCP通常是通过网络防火墙安装服务器的一种要求。“
https://serverfault.com/questions/392856
复制相似问题