linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mounstats keying on fsid or ipaddr?
@ 2011-06-27 18:15 Joe Frost
  2011-06-27 18:41 ` Trond Myklebust
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Frost @ 2011-06-27 18:15 UTC (permalink / raw)
  To: linux-nfs

We've been using mountstats to graph/track NFS usage based on path. 
We've recently made some changes on how we mount filesystems here where 
it's possible the same IP will be used for multiple mounts. Since that 
we've noticed that all mounts to the same IPaddr are showing the same 
statistics. Wondering if anyone had ideas why it might be keying off of 
IPaddr?

Below are some relevant configuration files:


Automount configuration for path /shows/movie/$key

ribcage              -rw,intr,rsize=131072,wsize=524288,tcp 
primary.carrots:/ifs/shows/movie/ribcage
convert              -rw,intr,rsize=131072,wsize=524288,tcp 
primary.carrots:/ifs/shows/movie/convert
shottmp              -rw,intr,rsize=131072,wsize=524288,tcp 
primary.carrots:/ifs/shows/movie/shottmp

Proc/mounts on a particular server:

primary.carrots:/ifs/shows/movie/shottmp on /shows/movie/shottmp type 
nfs 
(rw,noatime,intr,tcp,intr,rsize=131072,wsize=524288,tcp,sloppy,addr=10.73.6.89)
primary.carrots:/ifs/shows/movie/ribcage on /shows/movie/ribcage type 
nfs 
(rw,noatime,intr,tcp,intr,rsize=131072,wsize=524288,tcp,sloppy,addr=10.73.6.89)
primary.carrots:/ifs/shows/movie/convert on /shows/movie/convert type 
nfs 
(rw,noatime,intr,tcp,intr,rsize=131072,wsize=524288,tcp,sloppy,addr=10.73.6.89)



We're using Isilon as the filer:

carrots-1# isi nfs exports list
    Rule ID   Paths                                             Comment 

           11  /ifs/shows/brave/convert                       convert
           16  /ifs/shows/movie/ribcage                       ribcage
           17  /ifs/shows/movie/shottmp                       shottmp

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mounstats keying on fsid or ipaddr?
  2011-06-27 18:15 Mounstats keying on fsid or ipaddr? Joe Frost
@ 2011-06-27 18:41 ` Trond Myklebust
  0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2011-06-27 18:41 UTC (permalink / raw)
  To: Joe Frost; +Cc: linux-nfs

On Mon, 2011-06-27 at 11:15 -0700, Joe Frost wrote: 
> We've been using mountstats to graph/track NFS usage based on path. 
> We've recently made some changes on how we mount filesystems here where 
> it's possible the same IP will be used for multiple mounts. Since that 
> we've noticed that all mounts to the same IPaddr are showing the same 
> statistics. Wondering if anyone had ideas why it might be keying off of 
> IPaddr?

mountstats keys off the fsid as reported on the _server_. If your server
is reporting that these directories are all contained in one big volume,
then that will suffice to confuse the client.

One way to work around this, is to tell the client that the
subdirectories are on different volumes. You can do that using the
"nosharecache" mount option. Beware, however, that if you have hard
linked files that appear under more than one of these mountpoints, then
the client will treat them as if they are completely separate files for
the purposes of caching and close-to-open cache consistency checking.

Cheers
  Trond
-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-27 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27 18:15 Mounstats keying on fsid or ipaddr? Joe Frost
2011-06-27 18:41 ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).