From owner-freebsd-fs@FreeBSD.ORG Mon Jun 6 12:49:26 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B88651065672 for ; Mon, 6 Jun 2011 12:49:26 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 72B978FC12 for ; Mon, 6 Jun 2011 12:49:26 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EALzL7E2DaFvO/2dsb2JhbABThEqiaLljkDOBK4NsgQoEkHmPVg X-IronPort-AV: E=Sophos;i="4.65,326,1304308800"; d="scan'208";a="123046778" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 06 Jun 2011 08:49:25 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 59EE3B3FB1; Mon, 6 Jun 2011 08:49:25 -0400 (EDT) Date: Mon, 6 Jun 2011 08:49:25 -0400 (EDT) From: Rick Macklem To: =?utf-8?Q?Tobiasz_Siemi=C5=84ski?= Message-ID: <1963869783.149434.1307364565349.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.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org Subject: Re: NFSv4 at Diskless Station X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2011 12:49:26 -0000 Tobiasz wrote: > Thank you very much for reply. > I have got one more question. How can I force mounting with only > NFSv4? I > have added line "sysctl vfs.nfsd.server_min_nfsvers=4" to > /etc/rc.d/nfsd > file. > But when client is trying mount, firstly it try with NFSv4(but it > fails) and > finally it mount with NFSv3. > Best regards. > Hmm, well, the FreeBSD client won't try and mount using NFSv4 unless you specify "-o nfsv4". (You didn't say what client you are using.) If you want the FreeBSD client to do nfsv4 mounts without the option specified, you'd need to hack the mount_nfs.c sources and replace the binaries. (Although I don't consider the client experimental any more, using NFSv4 might still be looked at that way. At least, few want it to NFSv4 mount, so I haven't made it the default. That would also have not been backwards compatible for the switchover of default NFS client.) Also, if "vfs.nfsd.server_min_nfsvers=4" and "vfs.nfsd.server_max_nfsvers=4", a NFSv3 mount might?? work, but the mount point won't do anything useful, afaik. (ie. since mountd doesn't know about the sysctl, some clients may get past the "mount" without doing an NFSv3 RPC, but no NFSv3 RPC should work.) I don't know if this helps clarify things? rick