From owner-freebsd-fs@FreeBSD.ORG Tue Sep 7 21:23:59 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 953D910656DD for ; Tue, 7 Sep 2010 21:23:59 +0000 (UTC) (envelope-from gull@gull.us) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 584B78FC1B for ; Tue, 7 Sep 2010 21:23:59 +0000 (UTC) Received: by qyk4 with SMTP id 4so6077815qyk.13 for ; Tue, 07 Sep 2010 14:23:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.237.129 with SMTP id ko1mr5367346qcb.4.1283894638423; Tue, 07 Sep 2010 14:23:58 -0700 (PDT) Received: by 10.229.214.199 with HTTP; Tue, 7 Sep 2010 14:23:58 -0700 (PDT) X-Originating-IP: [69.91.158.216] In-Reply-To: <20100905174901.GE1900@garage.freebsd.pl> References: <4C812CEC.8080309@elischer.org> <4C814B9A.5030109@elischer.org> <20100905174901.GE1900@garage.freebsd.pl> Date: Tue, 7 Sep 2010 14:23:58 -0700 Message-ID: From: David Brodbeck To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Weird Linux - FreeBSD/ZFS NFSv4 interoperability problem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2010 21:23:59 -0000 On Sun, Sep 5, 2010 at 10:49 AM, Pawel Jakub Dawidek wrot= e: > 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. =A0I >> >need a little help getting nfs going, though. =A0I'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: > > =A0 =A0 =A0 =A0# touch /etc/exports > =A0 =A0 =A0 =A0# echo 'nfs_server_enable=3D"YES"' >> /etc/rc.conf > =A0 =A0 =A0 =A0# echo 'mountd_enable=3D"YES"' >> /etc/rc.conf > =A0 =A0 =A0 =A0# echo 'rpcbind_enable=3D"YES"' >> /etc/rc.conf > =A0 =A0 =A0 =A0# /etc/rc.d/rpcbind start > =A0 =A0 =A0 =A0# /etc/rc.d/nfsd start > =A0 =A0 =A0 =A0# /etc/rc.d/mountd start > =A0 =A0 =A0 =A0# zfs set sharenfs=3Don 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=3D"YES"' to /etc/rc.conf, I get the errors mentioned earlier.