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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-12-2008, 07:27 AM
|
#1
|
Member
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106
Rep:
|
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 ?
|
|
|
03-12-2008, 08:41 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
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.
|
|
|
03-12-2008, 06:44 PM
|
#3
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,440
|
rpm -qa|grep -i nfs might help
|
|
|
03-13-2008, 07:15 AM
|
#4
|
Member
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106
Original Poster
Rep:
|
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 !!
|
|
|
03-13-2008, 07:41 AM
|
#5
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
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).
|
|
|
05-26-2010, 06:56 AM
|
#6
|
LQ Newbie
Registered: Mar 2008
Posts: 3
Rep:
|
version check
i did yum --version nfs, worked!
|
|
|
07-08-2010, 01:54 PM
|
#7
|
LQ Newbie
Registered: Jul 2010
Posts: 5
Rep:
|
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
|
|
|
05-14-2012, 09:59 PM
|
#8
|
Member
Registered: Oct 2010
Posts: 93
Rep:
|
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
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 05:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|