In our daily work and study, some of the systems we use and corresponding operations will inevitably encounter some faults. We will analyze and handle NFS faults in the following sections. We hope that the summary in this article will help you solve the problems.
NFS fault 1,NFSD is not started.
First, check whether the NFS output list exists. Otherwise, nfsd will not start. You can use the exportfs command to check whether the exportfs command returns the result or the result is incorrect. Check the/etc/exports file.
NFS faults 2,Mountd process not started
The mountd process is a Remote Procedure Call (RPC), which responds to the application of the file system that requires the installation of mount 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:
- 100005 1 udp 1039 mountd
-
- 100005 1 tcp 1113 mountd
-
- 100005 2 udp 1039 mountd
-
- 100005 2 tcp 1113 mountd
-
- 100005 3 udp 1039 mountd
-
- 100005 3 tcp 1113 mountd
If not, check whether the PORTMAP component is installed.
Rpm-qa | grep portmap
NFS faults 3,Fs type nfs no supported by kernel
Kernel does not support the nfs file system. Re-compile the KERNEL to solve the problem.
NFS fault 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.
NFS faults 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.
NFS faults 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.
NFS faults 7,Blocked by 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.