Data ONTAP Discussions

NFS Volume Mount Client Listing

Hi Guys,

probably a few times a week I get asked "what servers mount that volume" as the mount points on our linux servers are often named differently from the volumes themselves.  for example


                      41943040   2183648  39759392   6% /lamp_website_home

So everybody but myself and the other guys who deal with the storage know this volume as '/lamp_website_home' and when I raise an incident around the volume filling up they do not know what I'm talking about.  This is where the difficulty comes in.  I have no way of saying "check server 1234 as i know that currently has the volume mounted" to point them in the direction of a server currently mounting this volume. 

So the only way for them to know what volume I'm raising an incident about is by logging onto a lot of servers to see what the volume is known as in their world.  Then they can find out who owns the data in there and chat to them about clearing some out.

So I'm wondering if anyone knows any command or other way to get a lits of what IP's are currently mounting a volume via NFS?

We're currently running OnTAP 8.1.3(CMODE) and 8.2(CMODE) on our clusters.




Re: NFS Volume Mount Client Listing

In clustered Data ONTAP, there is a way to see what clients are mounted via NFS, CIFS, etc.

::*> network connections active show -service ?

  mount                       Mount stream protocol

  nfs                         NFS stream protocol

  nfs-v2                      NFS version 2 stream protocol

  nfs-v3                      NFS version 3 stream protocol

  nlm-v4                      Network lock manager stream protocol

  sm                          Session Manager stream protocol

  ftp-ctrl                    FTP control stream protocol

  ftp-data                    FTP data stream protocol

  http-1-0                    HTTP version 1 stream protocol

  http-1-1                    HTTP version 1.1 stream protocol

  iscsi                       ISCSI stream protocol

  cifs-srv                    CIFS server stream protocol

  cifs-nam                    CIFS name server stream protocol

  loopback                    loopback stream protocol

  rf                          RC stream protocol

  rawscp                      Raw secure copy stream protocol

  discard                     Descard stream protocol

  port-map                    Port map stream protocol

  pass-thru                   Passthru stream protocol

  rclopcp                     Rc connection stream protocol

  nfs-v4                      NFS version 4 stream protocol

  fcache                      Flex cache stream protocol

  ctlopcp                     Ct connection stream protocol

  rquota                      Rquota stream protocol

  cifs-msrpc                  CIFS MsRpc stream protocol

  unknown                     unknown protocol


::*> network connections active show -service nfs*

              Vserver   Interface         Remote

      CID Ctx Name      Name:Local Port   Host:Port            Protocol/Service

--------- --- --------- ----------------- -------------------- ----------------

Node: parisi-cdot-02

3461168229  4 flexvol   data2:2049


However, the above does not show you which volume is mounted. But it does help narrow it down...

To see specific information about volumes, turn on per-client stats for NFS:

::> statistics settings modify -display-rates true -client-stats enabled

Warning: System performance may be significantly impacted. Are you sure?

Do you want to continue? {y|n}: y

::> statistics show -object client

Object: client


Start-time: 6/4/2014 14:47:08

End-time: 6/4/2014 14:47:22

Node: parisi-cdot-02

    Counter                                                     Value

    -------------------------------- --------------------------------



    total-ops                                                      79

    nfs3-ops                                                        0

    nfs4-ops                                                        0

    cifs-ops                                                       79

    recv-data                                                      0B

    sent-data                                                     23B

    recv-packets                                                 3916

    sent-packets                                                    0

    volumes                             flexvol:unix


    avg-latency                                                   0us

    nlm-ops                                                         0

    mount-ops                                                       0

    local-ops                                                       0

    remote-ops                                                     24

    avg-latency-local                                             0us

    avg-latency-remote                                            0us

Re: NFS Volume Mount Client Listing

Did the connection between the client and the volume disapear in 8.3?

Re: NFS Volume Mount Client Listing



Like Dan I also do not see a way to do nfsstats by client in 8.3, coming back to cmode (Justin probably remembers me from GX) I'd assumed this part was done. Is there another option I should be looking for in ngsh (or whatever this new cmode shell is called now)?



I can however still run nperf and pcpconfig, and I dont think I have to convert hex anymore.

Re: NFS Volume Mount Client Listing

I agree I do not see hostname or volume listed in the stats output at all.

@danmalcor wrote:

Did the connection between the client and the volume disapear in 8.3?


Re: NFS Volume Mount Client Listing

I too am desparate for a simple way of listing out what clients are connecting to what volumes. In 7-mode, you could look in /etc/rmtab to get a list, and although it wasn't 100% accurate (it often listed clietns after they disconnect), it was a huge help. I wouldn't think this should be that difficult to implement. On any linux box running an NFS server, I can run a "showmount -a" to get a list of clients and what nfs exports each is mounting. Migrations are very difficult when I have to take educated guesses on which clients will be affected. If anyone else has any methods of obtaining this information, please share. I'll keep searching and also post anything I find.

Re: NFS Volume Mount Client Listing

There is currently no way to do this today. I've been leaning on engineering to include this in a future version of ONTAP.

Re: NFS Volume Mount Client Listing

I'm guessing this also means there is no way to tell if an NFS connection is encrypted or not?

For SMB (using OnTap 9.1), I use this command to get a lot of useful information about all the connections to my cluster:
cifs session show -fields node,vserver,lif-address,address,windows-user,auth-mechanism,shares,protocol-version,is-session-signed,smb-encryption-status

This is the closest I've been able to come to it for NFS. It shows me the servers and the LIFs they are connecting to, but I see no way to correlate this to a particular volume.

network connections active show -node * -service NFS* -fields node,cid,vserver,lif-name,local-address,local-port,remote-ip,remote-host,remote-port



Re: NFS Volume Mount Client Listing

Is there any update to this thread?  I've tried this process on a system running 9.1P2, and there is still no correlation between volume and hostname. 

Re: NFS Volume Mount Client Listing

nfs modify -vserver vserver_name -showmount enabled
showmount -e (filerIP)
/test1 (everyone)
/test1/qtree1 (everyone)
/test1/qtree2 (everyone)


showmount -a vserverIP ...check with this command once..