【问题标题】:Mount NFS - no wait if server not responding挂载 NFS - 如果服务器没有响应,则无需等待
【发布时间】:2019-07-30 08:27:06
【问题描述】:

Centos7 中,我使用以下命令挂载远程文件夹:

mount -t nfs-o soft,timeo=900,retrans=1,vers=4.1 X.X.X.X:/nfsshare /nfsshare

挂载工作正常。

如果远程 NFS 服务器 没有响应,我想得到一个错误或快速超时,芽不工作。 如果我在 NFS 服务器 关闭时尝试访问远程文件,我将永久等待而不会出现错误或超时。

问题出在哪里?

【问题讨论】:

    标签: centos7 mount nfs


    【解决方案1】:

    我修复了这个配置:

    mount -t nfs -o soft,nomand,nofail,timeo=1,retrans=1,_netdev,rw X.X.X.X:/nfsshare /nfsshare
    

    【讨论】:

      猜你喜欢
      • 2020-12-30
      • 2020-09-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-28
      • 1970-01-01
      • 2013-10-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多