Troubleshooting of nfs errors in CentOS
I. troubleshooting of common NFS faults:
If the NFS service fails, check the cause from the following aspects:
(1) check whether the NFS Client and Server load is too high, and whether the network between the Server and Client is normal;
(2) Check the correctness of the/etc/exports file;
(3) restart the NFS and portmap services if necessary;
(4) run the following command to restart portmap and NFS:
#/Etc/init. d/portmap restart
#/Etc/init. d/nfs restart
#/Etc/init. d/rpcbind restart (in RHEL/CentOS 6. x)
# Chkconfig portmap on
# Chkconfig nfs on
# Chkconfig rpcbind on (in RHEL/CentOS 6. x)
Note: In RHEL/CentOS 6. in x, the portmap service is renamed as the rpcbind service. By the way, the rpcbind service is also a key basic service for the graphic interface. If this service is not started, the graphic desktop cannot be started.
(5) check whether the mount command on the Client or the/etc/fstab syntax is correct;
(6) check whether the kernel supports the NFS and RPC services. Generally, normal Linux systems support the NFS and RPC services by default, unless you re-compile the kernel, and do not select the nfs support option to compile.
Ii. solutions to common NFS faults:
1. The rpcbind failure error
Fault symptom:
Nfs mount: server1: RPC: Rpcbind failure
RPC: Timed Out
Nfs mount: retrying:/mntpoint
Cause:
First, there may be an incorrect IP address, host name, or node name combination in the hosts file of the client;
Second, the server temporarily stops service due to overload.
2. The server not responding error
Symptom:
NFS server server2 not responding, still trying
Cause:
First, the network is disconnected. Run the ping command to check the problem.
Second, the server is shut down.
3. The NFS client fails a reboot error
Symptom:
After the client is started, the following prompt information is displayed:
Setting default interface for multicast: add net 224.0.0.0: gateway:
Client_node_name.
Cause:
If you use fg in the mount Option of etc/vfstab, you cannot mount the resources on the server. Change it to bg or comment out the row until the server is available.
4. The service not responding error
Symptom:
Nfs mount: dbserver: NFS: Service not responding
Nfs mount: retrying:/mntpoint
Cause:
First, if the current level is not level 3, use who-r to view it and use init 3 to switch.
Second, the NFS Server daemon does not exist. Run ps-ef | grep nfs check and start with/etc/init. d/nfs start.
5. The program not registered error
Symptom:
Nfs mount: dbserver: RPC: Program not registered
Nfs mount: retrying:/mntpoint
Cause:
First, the current level is not level 3.
Second, the mountd daemon is not started. Use the/etc/init. d/nfs script to start the NFS daemon.
Third, check whether entries in/etc/dfs/dfstab are normal.
6. The stale file handle error
Symptom:
Stale NFS file handle
Cause:
The shared resources on the server are moved. You can use umount and mount on the client to re-mount them.
7. The unknown host error
Symptom:
Nfs mount: sserver1: RPC: Unknown host
Cause:
The content in the hosts file is incorrect.
8. The mount point error
Symptom:
Mount: mount-point/DS9 does not exist.
Cause:
This mount point does not exist on the client. Check the spelling of related entries in the command line or/etc/vfstab file.
9. The no such file error
Symptom:
No such file or directory.
Cause:
This mount point does not exist on the server. Check the spelling of related entries in the command line or/etc/vfstab file.
10. No route to host
Error:
# Mount 10.10.11.211:/opt/data/xmldb/c2c-web1/data/xmldb-t nfs-o rw
Mount: mount to NFS server '10. 10.11.211 'failed: System Error: No route to host.
Cause:
The firewall is turned on and disabled.
Many people have ignored this reason. If the firewall (including iptables and hardware firewall) is enabled, NFS uses port 111 by default. First, we need to check whether this port is enabled, check the TCP_Wrappers settings.
11. Not owner
Symptom:
# Mount-F nfs-o rw 10.10.2.3:/mnt/C2C/data/resinfo2/data/resinfo2
Nfs mount:/data/resinfo2: Not owner
Cause:
This is an error reported when nfs is mounted in earlier versions of Solaris 10.
Solution:
The-o vers = 3 parameter is required.
Example:
# Mount-F nfs-o vers = 3 10.10.2.3:/mnt/C2C/data/resinfo2/data/resinfo2
12. RPC: Program not registered & retrying
Symptom:
Nfs mount: 10.10.2.3: RPC: Program not registered
Nfs mount: retrying:/data/resinfo2
Cause:
The NFS shared end service is not started.
Solution: You need to restart the NFS service of share,
Linux:
Mount: RPC: Program not registered
#/Etc/init. d/nfs restart
Solaris:
Mount: RPC: Program not registered
#/Etc/rc. d/init. d/nfs restart
13. can't contact portmapper: RPC: Remote system error-Connection refused
Symptom:
# Exportfs-
Can't contact portmapper: RPC: Remote system error-Connection refused
Cause:
The error message is displayed because portmap on the server is not started.
Solution:
#/Etc/init. d/portmap start