From owner-freebsd-current@FreeBSD.ORG Fri Jan 7 16:14:09 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 991EA1065674 for ; Fri, 7 Jan 2011 16:14:09 +0000 (UTC) (envelope-from marek_sal@wp.pl) Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.8]) by mx1.freebsd.org (Postfix) with ESMTP id 298218FC15 for ; Fri, 7 Jan 2011 16:14:08 +0000 (UTC) Received: (wp-smtpd smtp.wp.pl 28861 invoked from network); 7 Jan 2011 17:14:06 +0100 Received: from cwx170.internetdsl.tpnet.pl (HELO marekdesktop) (marek_sal@[83.19.131.170]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with SMTP for ; 7 Jan 2011 17:14:06 +0100 Message-ID: <76E8B151C6514E358F6B1C86D2E21862@marekdesktop> From: "Marek Salwerowicz" To: "Rick Macklem" References: <368766744.233482.1294410026259.JavaMail.root@erie.cs.uoguelph.ca> Date: Fri, 7 Jan 2011 17:13:39 +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-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [YSM3] X-Mailman-Approved-At: Fri, 07 Jan 2011 16:33:07 +0000 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 16:14:09 -0000 > 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.) Kernel modules are from the same build. look at this: vm-salwerom% kldstat Id Refs Address Size Name 1 19 0xffffffff80100000 711d58 kernel 2 1 0xffffffff80812000 85d0 procfs.ko 3 2 0xffffffff8081b000 9628 pseudofs.ko 4 1 0xffffffff80825000 68ad0 if_em.ko 5 1 0xffffffff80a12000 2c92 geom_md.ko 6 1 0xffffffff80a15000 50fb tmpfs.ko 7 1 0xffffffff80a1b000 1fa green_saver.ko vm-salwerom% sudo kldload nfssvc kldload: can't load nfssvc: File exists vm-salwerom% kldstat Id Refs Address Size Name 1 19 0xffffffff80100000 711d58 kernel 2 1 0xffffffff80812000 85d0 procfs.ko 3 2 0xffffffff8081b000 9628 pseudofs.ko 4 1 0xffffffff80825000 68ad0 if_em.ko 5 1 0xffffffff80a12000 2c92 geom_md.ko 6 1 0xffffffff80a15000 50fb tmpfs.ko 7 1 0xffffffff80a1b000 1fa green_saver.ko vm-salwerom% sudo kldload nfssvc.ko <-------the suffix is needed vm-salwerom% kldstat Id Refs Address Size Name 1 21 0xffffffff80100000 711d58 kernel 2 1 0xffffffff80812000 85d0 procfs.ko 3 2 0xffffffff8081b000 9628 pseudofs.ko 4 1 0xffffffff80825000 68ad0 if_em.ko 5 1 0xffffffff80a12000 2c92 geom_md.ko 6 1 0xffffffff80a15000 50fb tmpfs.ko 7 1 0xffffffff80a1b000 1fa green_saver.ko 8 1 0xffffffff80a1c000 381 nfssvc.ko vm-salwerom% so I am able to load nfssvc.ko (with '.ko' suffix) ant unable to load nfssvc (without '.ko' suffix) - why ? -- Marek Salwerowicz