From owner-freebsd-net@FreeBSD.ORG Mon Apr 11 12:21:24 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9FC4106566B for ; Mon, 11 Apr 2011 12:21:24 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 84B018FC18 for ; Mon, 11 Apr 2011 12:21:24 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAIvxok2DaFvO/2dsb2JhbACES6JFiHqoSJAEgSmDTXgEjVg X-IronPort-AV: E=Sophos;i="4.63,339,1299474000"; d="scan'208";a="117844222" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 11 Apr 2011 08:21:23 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 82A12B3F34; Mon, 11 Apr 2011 08:21:23 -0400 (EDT) Date: Mon, 11 Apr 2011 08:21:23 -0400 (EDT) From: Rick Macklem To: "Marc G. Fournier" Message-ID: <69360213.224465.1302524483476.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (Win)/6.0.10_GA_2692) Cc: freebsd-net@freebsd.org Subject: Re: One final question about NFS ... or so I hope ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2011 12:21:24 -0000 > It used to be that if you did a 'mount' on the client server, it would > tell you what options existed on the mount ... but now, it just shows > (nfs) ... my fstab entry looks like: > > 192.168.1.8:/vm/neptune.hub.org /vm/neptune.hub.org > nfs rw,noauto,intr,tcp,nolockd 0 0 > > Mounts fine, no errors, and postfix works, so that I know that nolockd > option is working as expected ... but when I type 'mount', I get: > > 192.168.1.8:/vm/neptune.hub.org on /vm/neptune.hub.org (nfs) > > If I do 'mount -p' (fstab output), I get: > > # mount -p | grep 192.168 > 192.168.1.8:/vm/neptune.hub.org /vm/neptune.hub.org nfs rw > 0 0 > > So, how do I view what options are present on a FreeBSD nfs mount? > At this point, there isn't a way. Basically, you will get what you specify on the mount (or fstab line, if you prefer), plus rsize,wsize will be set based on what the server prefers unless they are specifically specified. There was a recent discussion w.r.t. this and one suggestion was an option on nfsstat to show what is actually being used. This might get done someday by me, if no one else steps up to the plate. > I checked our Linux boxes at the office, and they definitely do show > the > mount options: > > 3.165:/vol/prd_db_logs/filer_log2 on /filer_log02 type nfs > (rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,nfsvers=3,timeo=600,addr=10.1.13.165) > My understanding (which could be incorrect) is that the nfsstat option in Linux shows what is actually being used vs the above, which shows what was specified in the mount command. (Probably rsize, wsize will be the only ones affected by this, I think.) rick