Weird Linux - FreeBSD/ZFS NFSv4 interoperability problem

David Brodbeck gull at gull.us
Tue Sep 7 21:23:59 UTC 2010


On Sun, Sep 5, 2010 at 10:49 AM, Pawel Jakub Dawidek <pjd at freebsd.org> wrote:
> On Fri, Sep 03, 2010 at 12:25:14PM -0700, Julian Elischer wrote:
>> >I just grabbed it and slotted it into my VirtualBox test network.  I
>> >need a little help getting nfs going, though.  I'm getting the
>> >following error:
>> >
>> >KLD nfslockd.ko: depends on nfs - not available or version mismatch
>> >KLD nfsd.ko: depends on nfslockd - not available or version mismatch
>> >mountd: NFS server is not available
>> >
>> >Do I need to grab the source and build a new kernel with NFS enabled?
>>
>> you should be able to find a kernel module to do it..
>> maybe pjd has it lying around in his build tree, or maybe it's in
>> /boot/kernel on the image?
>
> All needed kernel modules are there, I just tested it. I wanted to turn
> off NFS server by default in the image itself, but forgot...
>
> Doing the following should be enough:
>
>        # touch /etc/exports
>        # echo 'nfs_server_enable="YES"' >> /etc/rc.conf
>        # echo 'mountd_enable="YES"' >> /etc/rc.conf
>        # echo 'rpcbind_enable="YES"' >> /etc/rc.conf
>        # /etc/rc.d/rpcbind start
>        # /etc/rc.d/nfsd start
>        # /etc/rc.d/mountd start
>        # zfs set sharenfs=on tank

Thanks, Pawel.

That works to get the NFSv3 server going, but I need to test against
the NFSv4 experimental server.  When I add 'nfsv4_server_enable="YES"'
to /etc/rc.conf, I get the errors mentioned earlier.


More information about the freebsd-fs mailing list