From owner-freebsd-amd64@FreeBSD.ORG Tue Mar 27 14:45:18 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23575106564A; Tue, 27 Mar 2012 14:45:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id EC20F8FC16; Tue, 27 Mar 2012 14:45:17 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 40D6CB98F; Tue, 27 Mar 2012 10:45:17 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Tue, 27 Mar 2012 10:44:56 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <201203271202.q2RC2IHm066123@red.freebsd.org> In-Reply-To: <201203271202.q2RC2IHm066123@red.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201203271044.56548.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 27 Mar 2012 10:45:17 -0400 (EDT) Cc: freebsd-gnats-submit@freebsd.org, Beeblebrox Subject: Re: amd64/166442: nfsd error when not compiled into kernel X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2012 14:45:18 -0000 On Tuesday, March 27, 2012 8:02:18 am Beeblebrox wrote: > > >Number: 166442 > >Category: amd64 > >Synopsis: nfsd error when not compiled into kernel > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Mar 27 12:10:11 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Beeblebrox > >Release: 9.0-STABLE > >Organization: > >Environment: > FreeBSD 9.0-STABLE #0 r233503: Mon Mar 26 23:53:01 EEST 2012 > >Description: > In Kernel config file, options: > options NFSCLIENT # Network Filesystem Client > #options NFSSERVER # Network Filesystem Server > #options NFSLOCKD # Network Lock Manager > options NFS_ROOT # NFS usable as /, requires NFSCLIENT > buildkernel with these settings results in a kernel which CANNOT KLDLOAD nfsd, and result in error message: "Version Mismatch" or "Exec Format Error" > > Commenting out NFSCLIENT results in a kernel which is able to load and start nfsd, while the PXE terminal client is still able to boot and mount root from NFS (provided nfscl_enable="YES" is specified in the /boot/loader.conf of PXE's root). so NFS_ROOT does not necessarily require NFSCLIENT, but NFSCLIENT certainly seems to require NFSSERVER. Yes, you should be using NFSCL and NFSD instead of NFSCLIENT and NFSSERVER now. 9 includes a new NFS client and server implementation that include NFSv4 support (and have cleaner code). GENERIC changed between 8 and 9 to switch to the new client and server, but it seems you are using an unmodified kernel config from 8 on 9? -- John Baldwin