You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

NFS挂载报错:access denied by server while mounting (null) 问题排查求助

NFS挂载报错:access denied by server while mounting (null) 问题排查求助

各位大佬好,我在IP为192.168.1.7的客户端上尝试挂载NFS共享时碰到了权限拒绝的问题,折腾半天没找到原因,想请大家帮忙看看。

具体操作和报错如下:
执行挂载命令:

mount -t nfs -o proto=tcp 10.24.69.1:/home/nfs /home/nfs

得到的报错信息是:

mount.nfs: access denied by server while mounting (null)

我特别疑惑这个(null)的出现,后来尝试指定不同的NFS版本参数,比如nfsvers=3、nfsvers=4.0、mountvers=3、mountvers=4.0,结果都是一样的错误。

接下来我排查了几个常见问题:

  • 网络连通性:能正常ping通NFS服务器10.24.69.1,路由应该是没问题的:

    ping 10.24.69.1
    

    输出结果:

    PING 10.24.69.1 (10.24.69.1) 56(84) bytes of data.
    64 bytes from 10.24.69.1: icmp_seq=1 ttl=63 time=20.6 ms
    64 bytes from 10.24.69.1: icmp_seq=2 ttl=63 time=20.9 ms

  • 防火墙拦截:能telnet到服务器的111(portmap)和2049(NFS)端口,应该没有防火墙拦截的问题:
    测试111端口:

    telnet 10.24.69.1 111
    

    输出:

    Trying 10.24.69.1...
    Connected to 10.24.69.1.
    Escape character is '^]'.
    ^\Connection closed by foreign host.

    测试2049端口:

    telnet 10.24.69.1 2049
    

    输出:

    Trying 10.24.69.1...
    Connected to 10.24.69.1.
    Escape character is '^]'.
    ^CConnection closed by foreign host.

  • 导出列表验证:用showmount命令查看服务器的导出共享,目标目录/home/nfs确实在列表里:

    showmount -e 10.24.69.1
    

    输出显示该共享目录已被服务器正常导出。

现在所有常规排查都做了,但还是挂载失败,有没有大佬能指点一下可能的原因?

备注:内容来源于stack exchange,提问作者mrieker

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 11:59:32