Workaround for NFS Mount when "Access denied by server while mounting" appears2015-01-14 He Minjie 3 Reviews 44,071 views
NFS is a very general and simple Linux under-sharing protocol, but it was recently installed, and the error "Access denied by server and mounting" appears when another CentOS mount mounts.
Because previously configured many times NFS, did not appear a bit of a problem, so first try to mount in the native mount, the test can be mounted, but on another machine but error, the first thought is iptables firewall problem, so shut down the firewall, also the same error.
To search the internet for a bit, there are many people who have encountered this error, but the reasons are not the same, here I summarize the reasons for this error:
1, the use of illegal ports, that is, the use of more than 1024 ports.
This error can be confirmed by checking the log:
[[Email protected]~/]# cat/var/log/messages | grep mount
Jan 2 12:49:04 localhost mountd[1644]: refused mount request from 192.168.0.100 for/home/nfsshare/(/home/nfsshare): Ille Gal Port 1689
Workaround:
Modify the configuration file/etc/exports, add the insecure option, restart the NFS service, and then try to mount it.
/home/nfsshare/* (Insecure,rw,async,no_root_squash)
2. NFS Version Issues
To edit the/etc/sysconfig/nfs file, locate the following:
#Turn off V2 and v3 protocol support #RPCNFSDARGS = "-N 2-n 3" #Turn off v4 protocol Support #RPCNFSDARGS = "-N 4"/* put this sentence in front of the # The number is removed */
Last save, restart the NFS service, and then try to mount it, if it is not mounted, try adding the-o nolock parameter to the back.
3, check whether the client Mount directory has read and write permissions, add the appropriate permissions.
4,the NFS server on the/etc/hosts set the client machine IP corresponding domain name, can be removed.
With these methods, access denied by server while mounting this error should be resolved.
Original link: NFS mount when "Access denied by server while mounting" solution, reproduced please specify the source!
Workaround for NFS Mount when "Access denied by server while mounting" appears