From owner-freebsd-current@FreeBSD.ORG Sun Jan 9 11:42:49 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16CD5106566B for ; Sun, 9 Jan 2011 11:42:49 +0000 (UTC) (envelope-from salwerom@iem.pw.edu.pl) Received: from volt.iem.pw.edu.pl (volt.iem.pw.edu.pl [194.29.146.3]) by mx1.freebsd.org (Postfix) with SMTP id A22A98FC0A for ; Sun, 9 Jan 2011 11:42:38 +0000 (UTC) Received: from marekdesktop (cwx170.internetdsl.tpnet.pl [83.19.131.170]) (Authenticated sender: salwerom) by volt.iem.pw.edu.pl (Postfix) with ESMTPSA id F2BC4A66A4F; Sun, 9 Jan 2011 12:24:23 +0100 (CET) Message-ID: <63A16336D4E84A90969026BAFB5FDA64@marekdesktop> From: "Marek Salwerowicz" To: "Rick Macklem" References: <945459543.11920.1294546904586.JavaMail.root@erie.cs.uoguelph.ca> Date: Sun, 9 Jan 2011 12:24:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Virus-Scanned: clamav-milter 0.96.5 at volt.iem.pw.edu.pl X-Virus-Status: Clean X-Mailman-Approved-At: Sun, 09 Jan 2011 11:58:21 +0000 Cc: freebsd-current@freebsd.org, Andrzej Tobola Subject: Re: NFSv4 and pam_mount - mounting user home directories. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2011 11:42:49 -0000 >> >> What I am missing ? >> >> /etc/sysctl.conf is applied before rc.d/nfs* ? >> > That would be my guess. The sysctl's aren't setable until the modules > are loaded. If you build a kernel with "options NFSD" in its kernel > config file, then it should be setable as above, I think? (I always > use sysctl manually after booting, so I don't really know how /etc/sysctl.conf > works. > After manually setting: salwerom@freebsd:/etc#sudo sysctl vfs.newnfs.server_max_nfsvers=4 vfs.newnfs.server_max_nfsvers: 4 -> 4 salwerom@freebsd:/etc#sudo sysctl vfs.newnfs.server_min_nfsvers=4 vfs.newnfs.server_min_nfsvers: 4 -> 4 salwerom@freebsd:/etc# We are still able to mount via NFSv3 (even when those two lines are commented in sysctl.conf). Any other idea.. ? -- Marek Salwerowicz