Skip to contentSkip to conversation

How to get information about the NFS version client and server have negotiated on the server side?

NFS Vasily Tarasov 2 participants 2 messages Nov 3, 2009 – Nov 4, 2009 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I have the following question. NFS client and server negotiate the version they are going to use at the mount time. How can I get the info about their decision on the server-side?

/proc/fs/nfs/exports gives me the list of currently active exports, though not per-client:

# cat /proc/fs/nfs/exports 
# Version 1.1
# Path Client(Flags) # IPs
/export 172.16.179.0/22(rw,insecure,no_root_squash,async,wdelay,no_subtree_check,fsid=0)

/var/lib/nfs/rmtab file gives me the list of currently mounted clients, but does not specify the version:

# cat /var/lib/nfs/rmtab 
172.16.179.131:/export:0x00000001

nfsstat (and corresponding /proc entry) does not help to, because there might be multiple clients working with different protocol versions at the same time. And I want to know what protocol is used by a specific one, while nfsstat gives only aggregate statistics.

On the client I can easily conclude protocol version from the /proc/mounts entry.

My config: CentOS5, nfs-utils-1.0.9-40.el5, kernel-2.6.18-128.el5

Any ideas? Thank you!

Vasily

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs

#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Vasily Tarasov

I have the following question. NFS client and server negotiate the version they are going to use at the mount time. How can I get the info about their decision on the server-side?

I don't know of an easy way to get that information.

We could add some sort of interface to get that information, but I'm not sure what it would look like. On the server side this may be a less well-defined question than you think, thanks to the stateless nature of the protocol, and to differences in the way clients are identified across the different protocol versions (especially v4 and v4.1).

--b.

Quoted 43 lines

/proc/fs/nfs/exports gives me the list of currently active exports, though not per-client:

# cat /proc/fs/nfs/exports 
# Version 1.1
# Path Client(Flags) # IPs
/export 172.16.179.0/22(rw,insecure,no_root_squash,async,wdelay,no_subtree_check,fsid=0)

/var/lib/nfs/rmtab file gives me the list of currently mounted clients, but does not specify the version:

# cat /var/lib/nfs/rmtab 
172.16.179.131:/export:0x00000001

nfsstat (and corresponding /proc entry) does not help to, because there might be multiple clients working with different protocol versions at the same time. And I want to know what protocol is used by a specific one, while nfsstat gives only aggregate statistics.

On the client I can easily conclude protocol version from the /proc/mounts entry.

My config: CentOS5, nfs-utils-1.0.9-40.el5, kernel-2.6.18-128.el5

Any ideas? Thank you!

Vasily

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs