NFS: Difference between revisions

From DWIKI
Line 21: Line 21:




=HOWTO=
==On server==
=== show mounted exports in /proc ===
Not all are currently active
cat /proc/fs/nfs/exports
=== show clients ===
Not all are currently active
cat /var/lib/nfs/rmtab
=== list connected clients ===
IP=`ip route get 1 | awk '{print $NF;exit}'`
netstat -an | grep $IP | grep 2049 | awk '{ print $5 }'| sed 's/:.*//g'
= FAQ =
= FAQ =
== SUNRPC: reached max allowed number (1) did not add transport to server ==
== SUNRPC: reached max allowed number (1) did not add transport to server ==
Line 36: Line 50:
 
 


== show mounted exports in /proc ==
cat /proc/fs/nfs/exports


== Failed: stale file handle ==
== Failed: stale file handle ==
Line 48: Line 59:
 
 


== show clients ==
cat /var/lib/nfs/rmtab


== versions supported by server ==
== versions supported by server ==

Revision as of 15:24, 18 August 2022

Network File System

Links

 

Docs

fsid=0

In nfs4 this is makes this export the root relative to which all others "base point under which all directories the server is exporting to a certain client are located"


nfs4.2

HOWTO

On server

show mounted exports in /proc

Not all are currently active

cat /proc/fs/nfs/exports

show clients

Not all are currently active

cat /var/lib/nfs/rmtab


list connected clients

IP=`ip route get 1 | awk '{print $NF;exit}'`
netstat -an | grep $IP | grep 2049 | awk '{ print $5 }'| sed 's/:.*//g'

FAQ

SUNRPC: reached max allowed number (1) did not add transport to server

You might be using 2 interfaces connecting to same server


mount -t nfs taking very long

mount.nfs: No route to host

firewall, really

 

 


Failed: stale file handle

umount -fl

 

 


versions supported by server

cat /proc/fs/nfsd/versions

nfs: server 1.2.3.4 not responding, timed out

??

mount.nfs: access denied by server while mounting

Could be wrong path in exports, maybe nfs3 vs nfs4.2 confusion?