码迷,mamicode.com
首页 > 数据库 > 详细

mount.nfs: access denied by server while mounting <SERVER IP>:<SERVER PATH>

时间:2018-02-21 10:41:58      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:message   class   toc   启动   日志输出   share   tar   使用   日志   

root@hipchat:~# mount -t nfs 192.168.10.220:/hipchat/share /home/share/nfs

mount.nfs: access denied by server while mounting 192.168.10.220:/hipchat/share

# 原因: 在服务器Oracle Linux 6.8的系统下使用的是NFSv4,在/var/log/messages中能看到nfs启动时的日志输出:

Feb 19 11:23:07 localhost rpc.mountd[19234]: Version 1.2.3 starting

Feb 19 11:23:07 localhost kernel: [34923.990353] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory

Feb 19 11:23:07 localhost kernel: [34923.990369] NFSD: starting 90-second grace period (net ffffffff81b8b040)

# 使用NFSv4时,在nfs服务端做如下操作:

[root@localhost ~]# vim /etc/sysconfig/nfs

# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)

# Turn off v2 and v3 protocol support

RPCNFSDARGS="-N 2 -N 3"

# Turn off v4 protocol support

RPCNFSDARGS="-N 4"

[root@localhost ~]# service nfs restart

mount.nfs: access denied by server while mounting <SERVER IP>:<SERVER PATH>

标签:message   class   toc   启动   日志输出   share   tar   使用   日志   

原文地址:https://www.cnblogs.com/quanweiru/p/8456146.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!