Problems with NFS server configuration under virtual machines

Source: Internet
Author: User
Tags nfsd

Problems that may occur during NFS Server Configuration:

1. NFSD is not started.

Make sure that the NFS output list exists. Otherwise, nfsd will not start. The exportfs command can be used to check the file. If the exportfs command does not return results or the returned results are incorrect, check the/etc/exports file.

2. the mountd process is not started.

The mountd process is a Remote Procedure Call (RPC). It responds to the file system application that requires mounting on the client. The mountd process finds the/etc/xtab file to find out which file systems can be used by remote clients. In addition, through the mountd process, you can know which file systems have been assembled by remote file systems and the list of remote clients. You can run the rpcinfo command to check whether mountd is properly started. Normally, the output list contains rows like this:

[Root @ localhost root] # rpcinfo-p

Program version protocol port

100000 2 tcp 111 portmapper

100000 2 udp 111 portmapper

391002 2 tcp 32768 sgi_fam

100011 1 udp 798 rquotad

..............................

If not, check whether the PORTMAP component is installed.

Rpm-qa | grep portmap

3. fs type nfs no supported by kernel

Kernel does not support the nfs file system. You can modify the KERNEL configuration file and re-compile the kernel.

4. can't contact portmapper: RPC: Remote system error-Connection refused

This error message is displayed because the PORTMAP on the SEVER side is not started.

5. mount clntudp_create: RPC: Program not registered

NFS is not started. You can run the showmout-e host command to check whether the nfs server is started normally.

6. mount: localhost:/home/test failed, reason given by server: Permission denied

This prompt may appear when the client wants to mount the nfs server. It means that the local machine has no permission to mount the directory on the nfs server. The solution is to modify the nfs server, that is, to modify the option content in the exports file.

7. blocked by the firewall

Many people have neglected this reason. in a network environment with strict requirements, we usually close all ports on linux and open them only when any port is needed. NFS uses port 111 by default, so we must first check whether this port is enabled, and also check the TCP_Wrappers settings.

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.