nfs mount principle troubleshooting FAQ

Abnormal One problem:
LS: CAN not Open Directory:. Stale File handle (file handle error)
reason: when the parent and child directories simultaneously mount, once the parent directory cancel sharing, but the client is still in the mounted state
problem Solution: the mount point and all parent directories related uninstalled completely, remount

abnormal question two:
of Can not the Register service: RPC: Unable to receive;
reason: service startup sequence is not correct
solve the problem: Turn off all services in order to boot

abnormal question three:
appearance mount stuck situation
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
reasons: the server firewall is turned on to prevent client access
problems to solve: turn off the firewall

abnormal question 4:
server using restart case, there will be a 90s delay; causing the client, you mount the shared directory, the data can not be stored in the 90s
reasons:
CAT / etc / sysconfig / nfs | grep 90
# NFSD_V4_GRACE = 90
# = 90 NFSD_V4_LEASE

 

 

nfs storage troubleshooting principles:


01. Check whether to activate the service end
02. Check nfs service is registered with the service rpc
[root @ nfs01 ~] # rpcinfo -p localhost unregistered case
Program Port Vers proto-Service
100000. 4 the portmapper TCP 111
100000. 3 the portmapper TCP 111
100000 2 TCP the portmapper 111
100000 111 the portmapper UDP. 4
100000. 3 the portmapper UDP 111
100000 2 111 UDP the portmapper

 

[root@nfs01 ~]# rpcinfo -p localhost
program vers proto port service 已经进行注册
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 20048 mountd
100005 1 tcp 20048 mountd
100005 2 udp 20048 mountd
100005 2 tcp 20048 mountd
100005 3 udp 20048 mountd
100005 3 tcp 20048 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 3 udp 2049 nfs_acl
100021 1 udp 60318 nlockmgr
100021 3 udp 60318 nlockmgr
100021 4 udp 60318 nlockmgr
100021 1 tcp 32828 nlockmgr
100021 3 tcp 32828 nlockmgr
100021 4 tcp 32828 nlockmgr

 

 

03. Check the nfs service is present can be shared directory


showmount -e 172.16.1.31
[root@backup ~]# showmount -e 172.16.1.31
Export list for 172.16.1.31:
/data 172.16.1.0/24

 

Mount Parameters:

The default parameter defaults

Let rw mount point directory with read and write permissions

suid (setuid) permission bits to make a special file in the directory mount point to take effect

dev mount point directory of the device so that file attributes remain unchanged

Let exec mount point directory executable file can be executed

auto mount point directory allows rapid automatically mount

nouser whether ordinary users can mount and unmount directory

Asynchronous data storage concept asvnc

Guess you like

Origin www.cnblogs.com/wobenwuxin/p/11201158.html