LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check nfs version (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-nfs-version-627485/)

livetoday 03-12-2008 07:27 AM

How to check nfs version
 
I am just installed RHEL4 ws. I am trying to know which version of nfs installed on it. How can I check the version of NFS ?

indienick 03-12-2008 08:41 AM

There are several ways;

Typing "man nfs" might tell you which version you're operating on, if not, it should tell you how to find out which version you are running.

Also, you could open up the graphical package manager. I don't know know if RHEL uses the same graphical front-end to rpm like Fedora does - yum - but if there's an Add/Remove Programs item in the main menu, then run it, and look around for the nfs packages, and a version number should be right next to it (if not in the package name).

Another option, which is kind of "theoretically, it makes sense", is reading the manpage for rpm and you might be able to find out which version an installed package is.

chrism01 03-12-2008 06:44 PM

rpm -qa|grep -i nfs might help

livetoday 03-13-2008 07:15 AM

Thanks for suggestions.....However, I am still not able to find out the correct version number :(

1. man nfs does not give any information on how to check the version of nfs.

2. Yum is not installed...and system-config-packages (Redhat Package Manager) does not list nfs version anywhere

3. rpm -qa | grep -i nfs shows only one output and it is

nfs-utils-1.0.6

4. rpm -qi nfs-utils however, give some intersting output.

Code:


:Description:
The nfs-utils provides a daemon for kernel nfs server and related tools........"

Does that mean nfs is installed in kernel ????

5. one more thing....."The another I got from google is to use rpcinfo".

rpcinfo -u localhost nfs shows..

Code:


program 100003 version 2 ready and waiting
program 100003 version 3 ready and waiting
program 100003 version 4 ready and waiting...


Any ideas !!

indienick 03-13-2008 07:41 AM

I'm pretty sure "1.0.6" denotes the NFS version you have.

And yes, NFS is in the kernel, as it is a file system (that was developed before the time of userspace file systems - ie. FUSE).

Mugove 05-26-2010 06:56 AM

version check
 
i did yum --version nfs, worked!

innoshare 07-08-2010 01:54 PM

Try nfsstat
 
nfsstat should provide output like the following:

Code:

Server rpc stats:
calls      badcalls  badauth    badclnt    xdrcall
137273295  0          0          0          0     

Server nfs v3:
null        getattr      setattr      lookup      access      readlink   
428      0% 2149361782 48% 3710191  0% 1595320309 35% 412552442  9% 727      0%
read        write        create      mkdir        symlink      mknod       
210565420  4% 26842873  0% 3489945  0% 1990773  0% 6        0% 0        0%
remove      rmdir        rename      link        readdir      readdirplus 
3436170  0% 15695    0% 40911    0% 1129277  0% 19640888  0% 1062412  0%
fsstat      fsinfo      pathconf    commit     
1330      0% 788      0% 0        0% 2417984  0%

In this example, the server is only running nfs v3 protocol. If you're running v2 and v4, you should have separate sections with stats for data served by version.

__________________
Georgia Web Design | Atlanta SEO

hahacc 05-14-2012 09:59 PM

yep, I would vote for this. When using nfsstat -s(query server) or nfsstat -c(query client), you can determine which nfs version it's using(the currently used one is with most rpc calls)
Quote:

Originally Posted by innoshare (Post 4027588)
nfsstat should provide output like the following:

Code:

Server rpc stats:
calls      badcalls  badauth    badclnt    xdrcall
137273295  0          0          0          0     

Server nfs v3:
null        getattr      setattr      lookup      access      readlink   
428      0% 2149361782 48% 3710191  0% 1595320309 35% 412552442  9% 727      0%
read        write        create      mkdir        symlink      mknod       
210565420  4% 26842873  0% 3489945  0% 1990773  0% 6        0% 0        0%
remove      rmdir        rename      link        readdir      readdirplus 
3436170  0% 15695    0% 40911    0% 1129277  0% 19640888  0% 1062412  0%
fsstat      fsinfo      pathconf    commit     
1330      0% 788      0% 0        0% 2417984  0%

In this example, the server is only running nfs v3 protocol. If you're running v2 and v4, you should have separate sections with stats for data served by version.

__________________
Georgia Web Design | Atlanta SEO



All times are GMT -5. The time now is 08:11 AM.