Project

General

Profile

Bug #6112

No nfsstats and showmount

Added by Franz Skale about 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
nfs - NFS server and client
Start date:
2015-08-11
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Hi, since 2015 there seems to be a bug with nfs.
I cannot get nfssstat to work.
It only shows 0 traffic which is not true.
I have two servers and both are nfsserver and provide exports to servers which are actually working !
Neither nfsstat nor showmount work.

nfsstat (with running nfsserver and I/O)
nfsstat -c -v 3

Client rpc:
Connection oriented:
calls badcalls badxids timeouts newcreds badverfs timers
3 0 0 0 0 0 0
cantconn nomem interrupts
0 0 0
Connectionless:
calls badcalls retrans badxids timeouts newcreds badverfs
0 0 0 0 0 0 0
timers nomem cantsend
0 0 0

Client nfs:
calls badcalls clgets cltoomany
0 0 0 0
Version 3: (0 calls)
null getattr setattr lookup access readlink
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
read write create mkdir symlink mknod
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
remove rmdir rename link readdir readdirplus
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
fsstat fsinfo pathconf commit
0 0% 0 0% 0 0% 0 0%

Client nfs_acl:
Version 3: (0 calls)
null getacl setacl getxattrdir
0 0% 0 0% 0 0% 0 0%

snoop:
10.10.250.70 -> 10.10.250.1 NFS R WRITE3 OK 4096 (FSYNC)
10.10.250.1 -> 10.10.250.70 NFS C WRITE3 FH=BB43 at 7469903872 for 4096 (FSYNC)
10.10.250.70 -> 10.10.250.1 NFS R WRITE3 OK 4096 (FSYNC)

showmount: (no output, should list clients connected)
showmount -a

showmount -e
export list for nfs01:
/nfsp01 (everyone)
/nfsp01/vmware_nfs01 @10.10.0.0/16

Are the IOCTLs broken ?

nfsstat used /dev/kstat to gather information.

Perhaps these issues will be fixed in the future.

Rgds.

Franz


Files

nfsstat.truss (11.3 KB) nfsstat.truss truss of nfsstat -c -v 3 Franz Skale, 2015-08-11 08:15 AM
showmount.truss (10.9 KB) showmount.truss truss if showmount -a Franz Skale, 2015-08-11 08:15 AM

History

#1

Updated by Marcel Telka about 5 years ago

  • Status changed from New to Rejected

To get the NFSv3 statistics on the server you should run nfsstat -s -v 3 (please note -s). With -c you asks for the client statistics.

The showmount -a command should be run on the NFS server to display the mounts (or the NFS server hostname parameter is needed).

I just tried both commands with today's version of OpenIndiana hipster and both works as expected:

root@t1:~# uname -a
SunOS t1 5.11 illumos-50a3c77 i86pc i386 i86pc Solaris
root@t1:~# showmount -a
t2:/export/TEST
root@t1:~# nfsstat -s -v 3

Server rpc:
Connection oriented:
calls      badcalls   nullrecv   badlen     xdrcall    dupchecks  dupreqs    
25         0          0          0          0          6          0          
Connectionless:
calls      badcalls   nullrecv   badlen     xdrcall    dupchecks  dupreqs    
0          0          0          0          0          0          0          

Server NFSv3:
calls      badcalls   referrals  referlinks 
25         0          0          0          
Version 3: (21 calls)
null        getattr     setattr     lookup      access      readlink    
1 4%        5 23%       2 9%        4 19%       3 14%       0 0%        
read        write       create      mkdir       symlink     mknod       
0 0%        0 0%        2 9%        0 0%        0 0%        0 0%        
remove      rmdir       rename      link        readdir     readdirplus 
0 0%        0 0%        0 0%        0 0%        0 0%        2 9%        
fsstat      fsinfo      pathconf    commit      
1 4%        1 4%        0 0%        0 0%        

Server nfs_acl:
Version 3: (4 calls)
null        getacl      setacl      getxattrdir 
0 0%        4 100%      0 0%        0 0%        
root@t1:~# share
-@rpool/export  /export/TEST   rw   "" 
root@t1:~#

Also available in: Atom PDF