挂载:服务器拒绝nfs访问 [英] mount: nfs access denied by server

查看:1447
本文介绍了挂载:服务器拒绝nfs访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在尝试在我的linux机器上挂载NFS设备.

Am trying to mount a NFS device in my linux machine.

我的/etc/fstab就是这样, 192.168.0.5:/volume2/Asterisk_Recordings/var/spool/newnfs nfs rsize = 32768,wsize = 32768,intr,noatime 1 0

My /etc/fstab is like this, 192.168.0.5:/volume2/Asterisk_Recordings /var/spool/newnfs nfs rsize=32768,wsize=32768,intr,noatime 1 0

我的/etc/mtab就是这样, 192.168.0.5:/volume2/Asterisk_Recordings/var/spool/newnfs nfs rw,addr = 192.168.0.5 0 0

My /etc/mtab is like this, 192.168.0.5:/volume2/Asterisk_Recordings /var/spool/newnfs nfs rw,addr=192.168.0.5 0 0

我已经在我的NAS设备中启用了NFS.

I have enabled NFS in my NAS device.

当我键入mount"mount -t nfs -v 192.168.0.5:/volume2/Asterisk_Recordings/var/spool/newnfs/"时,我会这样, mount.nfs:设置为2013年8月1日星期四超时 mount.nfs:尝试基于文本的选项'vers = 4,addr = 192.168.0.5,clientaddr = 192.168.1.1' mount.nfs:mount(2):权限被拒绝 mount.nfs:安装192.168.0.5时服务器拒绝访问:/volume2/Asterisk_Recordings

When i type mount " mount -t nfs -v 192.168.0.5:/volume2/Asterisk_Recordings /var/spool/newnfs/" I get like this, mount.nfs: timeout set for Thu Aug 1 07:01:04 2013 mount.nfs: trying text-based options 'vers=4,addr=192.168.0.5,clientaddr=192.168.1.1' mount.nfs: mount(2): Permission denied mount.nfs: access denied by server while mounting 192.168.0.5:/volume2/Asterisk_Recordings

有什么可能的原因吗?

谢谢.

推荐答案

如果nfs服务器上的/etc/hosts文件将客户端的主机名映射到错误的IP地址或IP地址,也会发生此错误.客户端使用不正确的主机名.它快速简便地进行检查,因此在寻找其他问题之前值得一做.请注意,如果必须更改任何条目,则必须停止并重新启动nfs-server,因为它仅在启动时才读取主机文件.

This error can also occur if the /etc/hosts file on the nfs server maps the hostname of the client to an incorrect IP address, or the IP address of the client to an incorrect hostname. It is quick and easy to check, so worth doing before looking for other problems. Note that, if you do have to change any entries then the nfs-server has to be stopped and re-started, as it reads the hosts file only when it is started.

这篇关于挂载:服务器拒绝nfs访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆