Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2007 13:19:58 -0400
From:      Christopher Hilton <chris@vindaloo.com>
To:        Devin Heckman <terrio@rescomp.berkeley.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NFS tuning on FreeBSD
Message-ID:  <465DB23E.7020003@vindaloo.com>
In-Reply-To: <20070530023904.GR4099@rescomp.berkeley.edu>
References:  <20070529205419.GO4099@rescomp.berkeley.edu>	<465CB591.4050607@vindaloo.com> <20070530023904.GR4099@rescomp.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Devin Heckman wrote:

[snip]

> Specifically, I want to know what version of NFS the connection is
> running over, whether or not it's using TCP or UDP, and other
> information of that nature. I haven't quite found a utility or file that
> contains this information yet.

That's a good question. Honestly I've never had to look. If I recall 
your original question properly your server was FreeBSD and your client 
was Linux. In this case the Linux mount command gives you good 
information. From FreeBSD the only way that I have found was to embed 
the options into the fstab file and use the short version of the mount 
command when attaching the filesystem.

For a tcp mount my fstab entry on FreeBSD looks like this:

      server:/directory /mountpoint nfs rw,tcp,intr,noauto 0 0

On my Ubuntu Linux box I have to do this:

      server/directory /mountpoint nfs rw,tcp,nfsvers=3,intr,noauto 0 0

To get the same effect.

For the FreeBSD NFS client the default is to try NFSv3 first followed by 
NFSv2. The documentation on my Ubuntu box indicates that it's Linux 
client defaults to NFSv2 and uses UDP. The behavior that I would expect 
to see from an Ubuntu Linux NFS client with a FreeBSD NFS server would 
be a NFSv2 UDP mount.

Sorry I couldn't give you a better answer. Perhaps someone on the list 
knows a better way.

-- Chris

-- 
       __o          "All I was doing was trying to get home from work."
     _`\<,_           -Rosa Parks
___(*)/_(*)___________________________________________________________
Christopher Sean Hilton                    <chris | at | vindaloo.com>
         pgp key: D0957A2D/f5 30 0a e1 55 76 9b 1f 47 0b 07 e9 75 0e 14



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465DB23E.7020003>