From owner-freebsd-fs@FreeBSD.ORG Sat Feb 21 18:50:59 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BE05DFA9 for ; Sat, 21 Feb 2015 18:50:59 +0000 (UTC) Received: from quine.pinyon.org (quine.pinyon.org [65.101.5.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FE25960 for ; Sat, 21 Feb 2015 18:50:59 +0000 (UTC) Received: by quine.pinyon.org (Postfix, from userid 122) id BEA15160254; Sat, 21 Feb 2015 11:50:57 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on quine.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from feyerabend.n1.pinyon.org (feyerabend.n1.pinyon.org [10.0.10.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by quine.pinyon.org (Postfix) with ESMTPSA id 3B7491600FA for ; Sat, 21 Feb 2015 11:50:55 -0700 (MST) Message-ID: <54E8D38F.9090608@pinyon.org> Date: Sat, 21 Feb 2015 11:50:55 -0700 From: "Russell L. Carter" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: The magic of ZFS and NFS (2nd try) References: <4257601.p3oiXZFr4n@falbala.rz1.convenimus.net> <12103095.viZFqgegqA@falbala.rz1.convenimus.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2015 18:50:59 -0000 On 02/21/15 11:23, Jordan Hubbard wrote: > >> On Feb 21, 2015, at 9:36 AM, Christian Baer >> wrote: >> >> But why shouldn't I use /etc/exports? I have read people writing >> this (don't use /etc/exports) in forums when searching for answers, >> however the current manpage for zfs says this: > > FreeNAS has more experience with sharing things from ZFS than anyone > else in the BSD community (that’s not hyperbole, it’s simply > fact). We don’t use any of the zfs sharing flags. Those were > intended more for Solaris (sharesmb, for example - FreeBSD lets you > do that, but what does it *mean* when you don’t have a native CIFS > service?). FreeBSD has never integrated ZFS’s notion of sharing > or, for that matter, a number of other things like drive hot sparing > and automatic replacement, and you’re seeing the results of ZFS’s > solaris roots still not lining up 100% with their new FreeBSD home. > That’s all. > > I would simplify things, just as FreeNAS has (for good reasons), and > simply have ZFS be “a filesystem” from FreeBSD’s perspective > and share it just as you would UFS. When I was working out my own mounts, it seemed that sharenfs=on was required to make them work, but I just checked and indeed I can mount a zfs file system over NFS4.1 without it. So I would definitely agree about not complicating things. Having both sharenfs and sharesmb *seem* to work does complicate figuring out how to make NFS work if you don't already know this, though. Back to Christian's problem, I don't see nfsv4_server_enable="YES" in your rc.conf lines. I have it in mine, and NFSv4 works. See man(4) nfsv4. You might have a look at /var/log/messages after restarting nfsd. Russell > > - Jordan > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs To unsubscribe, > send any mail to "freebsd-fs-unsubscribe@freebsd.org" >