【linux】挂载nfs服务器提示:svc: failed to register lockdv1 RPC service (errno 111)

【问题描述】
挂载nfs服务器提示:svc: failed to register lockdv1 RPC service (errno 111)。

【问题原因】
nfs mount 默认选项包括文件锁,依赖于portmap提供的动态端口分配功能。

【解决方案】
mount命令添加**-o nolock**选项。

   Using file locks with NFS
       The  Network Lock Manager protocol is a separate sideband protocol used to manage file locks in NFS version 2 and version 3.  To support lock recovery after a client or server reboot, a second
       sideband protocol -- known as the Network Status Manager protocol -- is also required.  In NFS version 4, file locking is supported directly in the main NFS protocol, and the NLM and NSM side‐
       band protocols are not used.

       In  most  cases, NLM and NSM services are started automatically, and no extra configuration is required.  Configure all NFS clients with fully-qualified domain names to ensure that NFS servers
       can find clients to notify them of server reboots.

       NLM supports advisory file locks only.  To lock NFS files, use fcntl(2) with the F_GETLK and F_SETLK commands.  The NFS client converts file locks obtained via flock(2) to advisory locks.

       When mounting servers that do not support the NLM protocol, or when mounting an NFS server through a firewall that blocks the NLM service port, specify the nolock  mount  option.  NLM  locking
       must be disabled with the nolock option when using NFS to mount /var because /var contains files used by the NLM implementation on Linux.

       Specifying the nolock option may also be advised to improve the performance of a proprietary application which runs on a single client and uses file locks extensively.


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

草丛中的蝈蝈

您的鼓励是我最大的动力....

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值