Workaround for NFS Mount when "Access denied by server while mounting" appears

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.