Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2011 17:13:39 +0100
From:      "Marek Salwerowicz" <marek_sal@wp.pl>
To:        "Rick Macklem" <rmacklem@uoguelph.ca>
Cc:        freebsd-current@freebsd.org, Garrett Cooper <gcooper@FreeBSD.org>
Subject:   Re: nfssvc not available or version mismatch (nfsv4 client)
Message-ID:  <76E8B151C6514E358F6B1C86D2E21862@marekdesktop>
References:  <368766744.233482.1294410026259.JavaMail.root@erie.cs.uoguelph.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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=<kernel_name> install
> after doing a kernel build, which copies the kernel and all the modules
> to /boot/<kernel_name>. I always use a <kernel_name> 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/<kernel_name> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76E8B151C6514E358F6B1C86D2E21862>