From owner-freebsd-fs@FreeBSD.ORG Sat Feb 21 17:40:08 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93B356CE for ; Sat, 21 Feb 2015 17:40:08 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CA7FF9F for ; Sat, 21 Feb 2015 17:40:07 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YPE28-0006Ae-5k for freebsd-fs@freebsd.org; Sat, 21 Feb 2015 18:40:04 +0100 Received: from p5b02295d.dip0.t-ipconnect.de ([91.2.41.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Feb 2015 18:40:04 +0100 Received: from christian.baer by p5b02295d.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Feb 2015 18:40:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Christian Baer Subject: Re: The magic of ZFS and NFS (2nd try) Date: Sat, 21 Feb 2015 18:36:16 +0100 Lines: 39 Message-ID: <12103095.viZFqgegqA@falbala.rz1.convenimus.net> References: <4257601.p3oiXZFr4n@falbala.rz1.convenimus.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b02295d.dip0.t-ipconnect.de User-Agent: KNode/4.14.2 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 17:40:08 -0000 Rainer Duffner wrote: > You must use the syntax of exports(5) also with zfs set sharenfs= > AFAIK, you shouldn’t use /etc/exports to do zfs exports but the above > command 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: sharenfs=on | off | opts Controls whether the file system is shared via NFS, and what options are used. A file system with a sharenfs property of off is managed the traditional way via exports(5). Otherwise, the file system is automatically shared and unshared with the "zfs share" and "zfs unshare" commands. If the property is set to on no NFS export options are used. Otherwise, NFS export options are equivalent to the con- tents of this property. The export options may be comma-separated. See exports(5) for a list of valid options. To me this looks like I can choose whether I want to use the exports file or if I wish to set the sharenfs flag. I don't really *that* much, although I don't really think this is something that a file system should decide, but should be set from the NFS server. > If your hosts you export to are in your nfs-server’s /etc/hosts, you will > need to use the names they resolve to also in the exports-statement. > (Though that might be wrong - it was the case with Solaris, though). I used IPs. See other post. > uids/gids should match, too, of course. They do. There aren't so many users so it's not too hard to keep up with that. :-) But I just checked again to make sure. Regards, Chris