From owner-freebsd-current@FreeBSD.ORG Fri Jan 7 14:48:37 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 79EDC106566C; Fri, 7 Jan 2011 14:48:37 +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 2769A8FC0C; Fri, 7 Jan 2011 14:48:36 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEABuwJk2DaFvO/2dsb2JhbACDd6EjrjmNZYEhgzd0BIRnhiI X-IronPort-AV: E=Sophos;i="4.60,289,1291611600"; d="scan'208";a="104579604" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 07 Jan 2011 09:20:26 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 4E2E5B4032; Fri, 7 Jan 2011 09:20:26 -0500 (EST) Date: Fri, 7 Jan 2011 09:20:26 -0500 (EST) From: Rick Macklem To: Marek Salwerowicz Message-ID: <368766744.233482.1294410026259.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 - IE8 (Win)/6.0.10_GA_2692) Cc: freebsd-current@freebsd.org, Garrett Cooper Subject: Re: nfssvc not available or version mismatch (nfsv4 client) 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: Fri, 07 Jan 2011 14:48:37 -0000 > > > > kldload nfssvc && dmesg | tail -n 10 ? > > > > vm-salwerom% sudo kldload nfssvc > kldload: can't load nfssvc: File exists > > but: > > vm-salwerom% sudo kldload nfssvc.ko > vm-salwerom% dmesg | tail -n 10 > em0 at 194.29.146.128 server 194.29.146.27 server name amp2 > subnet mask 255.255.255.0 router 194.29.146.1 rootfs 194.29.146.3:/ > rootopts > nolockd hostname vm-salwerom > Adjusted interface em0 > SMP: AP CPU #1 Launched! > Trying to mount root from nfs: []... > NFS ROOT: 194.29.146.3:/ > KLD nfscommon.ko: depends on nfssvc - not available or version > mismatch > linker_load_file: Unsupported file type > KLD nfscl.ko: depends on nfssvc - not available or version mismatch > linker_load_file: Unsupported file type > vm-salwerom% > vm-salwerom% > > > so, why if I want to load nfssvc I have to type it with the suffix? > How can > I tell nfsuserd and anfscbd to try to load it with suffix during > system > boot? > I'm not very good at this stuff so others might need to chime in, but it looks to me like some of your kernel modules are from different builds. I always: # make KERNEL= install after doing a kernel build, which copies the kernel and all the modules to /boot/. I always use a other than "kernel" just in case it doesn't work, then you can move it over if is seems ok. Both nfscl.ko and nfsd.ko specify nfssvc.ko as a module they depend on, so they should be loaded automagically if all the correct versions are in the /boot/ tree. (At least it works that way for me.) rick