LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2008, 07:27 AM   #1
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
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 ?
 
Old 03-12-2008, 08:41 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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.
 
Old 03-12-2008, 06:44 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,237

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
rpm -qa|grep -i nfs might help
 
Old 03-13-2008, 07:15 AM   #4
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Original Poster
Rep: Reputation: 15
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 !!
 
Old 03-13-2008, 07:41 AM   #5
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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).
 
Old 05-26-2010, 06:56 AM   #6
Mugove
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Thumbs down version check

i did yum --version nfs, worked!
 
Old 07-08-2010, 01:54 PM   #7
innoshare
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
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
 
Old 05-14-2012, 09:59 PM   #8
hahacc
Member
 
Registered: Oct 2010
Posts: 93

Rep: Reputation: 1
Smile

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 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check OS version souman Linux - Software 5 06-21-2013 12:29 AM
Slow Nfs: How to check it and improve it ? frenchn00b Linux - General 4 09-17-2007 02:50 PM
check kde version emarri Red Hat 15 03-10-2006 05:46 AM
how 2 check RH version? est Red Hat 2 02-28-2005 01:17 AM
how to check version of ypbind rudy3107 Linux - Networking 1 06-22-2003 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration