From owner-freebsd-fs@FreeBSD.ORG Sun Apr 3 22:13:29 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 2D97D1065673; Sun, 3 Apr 2011 22:13:29 +0000 (UTC) (envelope-from christopher-ml@telting.org) Received: from mail.telting.org (mail.telting.org [204.109.56.249]) by mx1.freebsd.org (Postfix) with ESMTP id C94E08FC12; Sun, 3 Apr 2011 22:13:28 +0000 (UTC) Received: from apollo.local (cpe-76-168-204-255.socal.res.rr.com [76.168.204.255]) by mail.telting.org (Postfix) with ESMTP id C47542A702; Sun, 3 Apr 2011 21:55:09 +0000 (UTC) Message-ID: <4D98ECBE.2090306@telting.org> Date: Sun, 03 Apr 2011 14:55:10 -0700 From: Chris Telting User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.15) Gecko/20110305 Thunderbird/3.1.9 MIME-Version: 1.0 To: Rick Macklem References: <996838892.118259.1298065089198.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <996838892.118259.1298065089198.JavaMail.root@erie.cs.uoguelph.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, Lawrence Stewart Subject: Re: Mounting NFSv4 as root fs 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: Sun, 03 Apr 2011 22:13:29 -0000 On 02/18/2011 13:38, Rick Macklem wrote: > Yep. I didn't see an easy way to set up the diskless root so that it would > work for both clients concurrently, so I was planning on switching it if/when > "newnfs" becomes the default client. (You can switch fairly easily. Just > crib the code across, as it sounds like you have and then make sure the > xxx_mountroot() in "newnfs" gets called instead of nfs_mountroot() in the > other one. > > However, that will just get a "newnfs" NFSv3 root mount to work. > Sounds like it should be a kernel option as to which NFS implementation is default on a pxeboot. > I have never intended to try and make an NFSv4 root mount work. > (Someone said NFSv4 is NFS in name only:-) > That's a shame. It seems logical to me that that's a critical feature to it's acceptance. I'm still new to nfsv4 so please forgive what I don't understand. The kernel boots the a normal disk filesystem only knowing uid/gid numbers. It only understands what is root accessible or suid and what isn't. Once the filesystem is mounted it can consult whatever database is used for further information. Why can't we make nfsv4 tolerant of running without nfsuserd information at least initially? Have a special filesystem option to run it in crippled mode. And once we have networking and nfsuserd loaded we can remount the filesystem..? Chris