LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2013, 06:40 PM   #1
TeddyGmail
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Rep: Reputation: Disabled
NFS force only nfs v4


Dear Linux experts,

I set up a NFS server on RHEL6 and i set the following on the /etc/nfsmount.conf:

[ NFSMount_Global_Options ]
Defaultvers=4
Nfsvers=4

However, when i checked the nfs status : nfsstat, i got these :

==============================================================================
Server rpc stats:
calls badcalls badauth badclnt xdrcall
31616598 1 1 0 0

Server nfs v2:
null getattr setattr root lookup readlink
1 100% 0 0% 0 0% 0 0% 0 0% 0 0%
read wrcache write create remove rename
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
link symlink mkdir rmdir readdir fsstat
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%

Server nfs v3:
null getattr setattr lookup access readlink
5 0% 146827 90% 22 0% 57 0% 11909 7% 0 0%
read write create mkdir symlink mknod
6 0% 2816 1% 0 0% 0 0% 0 0% 0 0%
remove rmdir rename link readdir readdirplus
0 0% 0 0% 0 0% 0 0% 0 0% 6 0%
fsstat fsinfo pathconf commit
0 0% 4 0% 2 0% 0 0%

Server nfs v4:
null compound
64 0% 31454522 99%

Server nfs v4 operations:
op0-unused op1-unused op2-future access close commit
0 0% 0 0% 0 0% 4050903 4% 2376235 2% 26367 0%
create delegpurge delegreturn getattr getfh link
47337 0% 0 0% 856541 0% 29986865 33% 3862923 4% 666 0%
lock lockt locku lookup lookup_root nverify
110 0% 25 0% 95 0% 2804501 3% 0 0% 0 0%
open openattr open_conf open_dgrd putfh putpubfh
2724218 3% 0 0% 896604 0% 126 0% 31309499 34% 0 0%
putrootfh read readdir readlink remove rename
4992 0% 972621 1% 154837 0% 2100 0% 427079 0% 83398 0%
renew restorefh savefh secinfo setattr setcltid
224172 0% 2527102 2% 2855225 3% 0 0% 728940 0% 104 0%
setcltidconf verify write rellockowner bc_ctl bind_conn
104 0% 0 0% 3571190 3% 50 0% 0 0% 0 0%
exchange_id create_ses destroy_ses free_stateid getdirdeleg getdevinfo
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
getdevlist layoutcommit layoutget layoutreturn secinfononam sequence
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
set_ssv test_stateid want_deleg destroy_clid reclaim_comp
0 0% 0 0% 0 0% 0 0% 0 0%

==============================================================================

This NFS server seems to give not only NFS v4, but also v2 and v3.
ANd if not mistaken, there are some v3 connections still running.

When i checked all the clients, they all running v4:
===================================================
Server rpc stats:
calls badcalls badauth badclnt xdrcall
0 0 0 0 0

Client rpc stats:
calls retrans authrefrsh
2057241 0 2058046

Client nfs v4:
null read write commit open open_conf
0 0% 28493 1% 63116 3% 120 0% 185556 9% 12456 0%
open_noat open_dgrd close setattr fsinfo renew
0 0% 3 0% 164441 7% 56158 2% 3 0% 4061 0%
setclntid confirm lock lockt locku access
2 0% 2 0% 22 0% 5 0% 19 0% 387882 18%
getattr lookup lookup_root remove rename link
742645 36% 264025 12% 1 0% 33621 1% 8317 0% 27 0%
symlink create pathconf statfs readlink readdir
0 0% 39 0% 2 0% 2 0% 390 0% 11593 0%
server_caps delegreturn getacl setacl fs_locations rel_lkowner
5 0% 94381 4% 0 0% 0 0% 0 0% 10 0%
exchange_id create_ses destroy_ses sequence get_lease_t reclaim_comp
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
layoutget layoutcommit layoutreturn getdevlist getdevinfo ds_write
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
ds_commit
0 0%
===================================================





all the clients have the same mount setting in /etc/fstab:
=========================================================
nfsserver:/home /home nfs4 rw,sync,hard,intr 0 0
=========================================================






Questions:
==========
- How to force NFS server to use only v4, why the config /etc/nfsmount.conf has no effect?
- How to check which client is using lower version of NFS (v2-v3)?


Thanks in advance,


Teddy
 
Old 06-16-2013, 11:59 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
See A4 http://nfs.sourceforge.net/ and use 4 instead of 3 and 3 instead of 2.
See also http://www.linuxtopia.org/online_boo...nt-config.html
 
Old 06-17-2013, 12:40 AM   #3
TeddyGmail
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks so much Chris..

That really helps.....

Teddy
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server - 10.04.03 - NFS export with Kerberos (MIT) - NFS Won't Start tekkon7 Linux - Server 2 11-07-2011 09:53 AM
Is it safe to force unmount an NFS share after calling sync? Mountain Linux - Software 2 03-26-2011 11:56 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Force user in NFS? lukebeales Linux - Software 2 04-26-2007 02:58 AM
NFS large file v3 force? sirmonkey Debian 1 04-17-2007 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:50 PM.

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