Monthly Archives: June 2008

  • Netapp : nfsstat command

    This command displays the NFS and RPC statistics of filer. The command can be used to find the performance bottlenecks in NFS environment. This shows the metrics for each nfs call defined below. For more details refer http://www.ietf.org/rfc/rfc1813.txt .

     
    GETATTR:  Get file attributes
    SETATTR:  Set file attributes
    LOOKUP:   Lookup filename
    ACCESS:   Check access permission
    READLINK: Read from symbolic link
    READ:     Read from file
    WRITE:    Write to file
    CREATE:   Create a file
    MKDIR:    Create a directory
    SYMLINK:  Create a symbolic link
    MKNOD:    Create a special device
    REMOVE:   Remove a file
    RMDIR:    Remove a directory
    RENAME:   Rename a file or directory
    LINK:     Create link to an object
    READDIR:  Read From directory
    READDIRPLUS: Extended read from directory
    FSSTAT:   Get dynamic file system information
    FSINFO:   Get static file system information
    PATHCONF: Retrieve POSIX information

    Command: nfsstat (The important thing to note in nfsstat is “Server nfs V3” statistics)

    Server nfs V3: (7939531611 calls)

    null       getattr    setattr    lookup     access     readlink   read
    2098536 0% 8732098536 23% 98536 0%  6732365515 14% 61019260 63% 192842 0%  101763023 0%

    write      create     mkdir      symlink    mknod      remove     rmdir
    9739487 0% 25364 0%   6 0%       0 0%       0 0%       18898 0%   2 0%

    rename     link       readdir    readdir+   fsstat     fsinfo     pathconf
    13809 0%   6 0%       2398 0%    1011793 0% 1689879 0% 32804 0%   0 0%

    commit
    0 0%

    Command: nfsstat –l (Displays nfs client information and number of nfs calls made by each client)

    Filer> nfsstat -l

    192.168.10.15    qa1nfsclient-lin.lab.unixfoo.net NFSOPS =      35337 ( 0%)
    192.168.10.16    qa2nfsclient-lin.lab.unixfoo.net NFSOPS =      35326 ( 0%)
    192.168.10.17    qa3nfsclient-lin.lab.unixfoo.net NFSOPS =   16534679 ( 0%)
    192.168.10.18    qa4nfsclient-lin.lab.unixfoo.net NFSOPS =   16637787 ( 0%)
    192.168.10.36    qa90dbclient-lin.lab.unixfoo.net NFSOPS =   19873449 ( 0%)
    192.168.10.37    dev1dbclient-lin.lab.unixfoo.net NFSOPS =   16716260 ( 0%)
    192.168.10.38    dev3dbclient-lin.lab.unixfoo.net NFSOPS =   15835924 ( 0%)

    Command: nfsstat –h (Displays server side NFS statistics for a single client. This will help us to identify what operation each client does) 

    Server nfs V3:

    null       getattr    setattr    lookup     access     readlink   read
    9 0%       73 0%      2 0%       21 0%      47 0%      0 0%       0 0%

    write      create     mkdir      symlink    mknod      remove     rmdir
    17402552 100% 10 0%      0 0%       0 0%       0 0%       11 0%      0 0%

    rename     link       readdir    readdir+   fsstat     fsinfo     pathconf
    1 0%       0 0%       0 0%       6 0%       27 0%      8 0%       0 0%

    commit
    0 0%