Novell资讯 NetWareLinux SUSE ZENworks GroupWise i 系列 Platespin
返回首页
当前位置: Novell迷 > Novell归档 > Linux >

Linux NFS mount: failed, reason given by server: Permission

时间:2010-02-19 01:05来源:本站整理 作者:Novell迷 点击:
Linux NFS mount: failed, reason given by server: Permission denied

Linux NFS mount: failed, reason given by server: Permission denied

本文来自Novell迷网站 http://novell.me

The ANSWER: http://novell.me

The problem was that the special nfsd file system that mounts to /proc/fs/nfsd wasn't mounted. I'm not sure how it gets mounted (maybe rc.sysinit does it?), but I tool the advice from the forum entry and added an entry to /etc/fstab Novell迷,迷Novell

none /proc/fs/nfsd nfsd auto,defaults 0 0

内容来自Novell迷网站

then ran mount -a

版权所有,未经Novell迷允许,不得转载!

After this the mount worked fine. I hope that someone finds this helpful. 本文来自Novell迷网站 http://novell.me

另注意:像 mount -t nfs   10.167.18.250:/home/   /mnt/share/

ip地址前不需要加双斜框//!

本文引用自Novell迷网站

另一案例:

CopyRight http://novell.me

在网上查了一些资料,有人说把/etc/exports换成域名试试,所以我就改成了:
[root@ha1 nfs]# cat /etc/exports
/nfs/mp3/mp3files *.xxxxxx.com(rw,async)

再mount,发现正常,没有问题了。后来又查了一些相关资料,才知道:

nfs server接到客户端的mount时,会先客户的IP做反解成域名,用域名(注意是用域名而不是IP)去和/etc/exports做比较,如果匹配不成功会失败。

而我做了域名反解后,并没有更新/etc/exports内的IP为域名。所以匹配不到对应的域名,自然就出现mount: 192.168.1.172:/nfs/mp3/mp3files failed, reason given by server: Permission denied的错误了。

本文来自Novell迷网站 http://novell.me

转载请注明出处!
本文地址 http://novell.me/Linux/201002/linux-mount-issue.html
(责任编辑:Novell迷)
对我有帮助
(1)
50%
没什么帮助
(1)
50%
------分隔线----------------------------
发表评论
验证码:点击我更换图片
赞助商链接
推荐内容