From owner-freebsd-fs@FreeBSD.ORG Mon Feb 23 23:01:59 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 23DCC9A9 for ; Mon, 23 Feb 2015 23:01:59 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id B53CDE00 for ; Mon, 23 Feb 2015 23:01:58 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DJBAAHsetU/95baINbg1haBIMEwAcKhGNESQKBaAEBAQEBAXyEDwEBAQMBAQEBICsgCwUWGAICDRkCKQEJJgYIBwQBHASIBggNukyYSQEBAQEBAQQBAQEBAQEBARqBIYlyhB0BARs0B4JogUMFikqIZoNGgzo4jiKDPiKCAhyBbiAxB4EEOX8BAQE X-IronPort-AV: E=Sophos;i="5.09,634,1418101200"; d="scan'208";a="192476315" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 23 Feb 2015 18:01:29 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id B9A66B3F34; Mon, 23 Feb 2015 18:01:29 -0500 (EST) Date: Mon, 23 Feb 2015 18:01:29 -0500 (EST) From: Rick Macklem To: Martin Simmons Message-ID: <1256589852.9218646.1424732489750.JavaMail.root@uoguelph.ca> In-Reply-To: <201502231413.t1NEDITT000687@higson.cam.lispworks.com> Subject: Re: The magic of ZFS and NFS (2nd try) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.12] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-fs@freebsd.org 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: Mon, 23 Feb 2015 23:01:59 -0000 Martin wrote: > >>>>> On Sat, 21 Feb 2015 18:34:12 +0100, Christian Baer said: > > > > Russell L. Carter wrote: > > > > > Post your /etc/exports, and the nfs*_enable bits of /etc/rc.conf. > > > And > > > as Rainer noted you definitely need to check that uid/gid match > > > on > > > both server and client. > > > > Pretty boring stuff... > > > > root@obelix:~ # cat /etc/exports > > V4: /usr/archive/Shared -alldirs -network 192.168.100/24 > > > > I reduced the shares to one for the time being. > As Martin notes below, the above does not export any file system. Add a line for /usr/archive/Shared to /etc/exports just like you would have for UFS and then send a HUP signal (kill -HUP ) to make the changes to /etc/exports take effect. - After this, check for syslog messages, in case the exports syntax isn`t correct. I know nothing about ZFS, but my understanding is that you can do everything in /etc/exports just like you would for UFS. (I'm not even sure what ZFS calls a file system, but every line you see when you type "mount" with no arguments is a file system as far as FreeBSD is concerned.) Every file system you want to access from client(s) must have an line in exports (or in the ZFS stuff if you choose to do it that way). The only difference for NFSv4 is that the client(s) don`t have to do separate mounts for each file system, but they all must be exported to the client(s). Hope this helps, rick ps: You only have one V4: line because there is only one place in the server`s directory tree that can be a root for NFSv4. > According to exports(5), that reduces it to zero: > > The third form has the string ``V4:'' followed by a single absolute > path name, > to specify the NFSv4 tree root. This line does not export any file > system, > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > but simply marks where the root of the server's directory tree is for > NFSv4 > clients. The exported file systems for NFSv4 are specified via the > other > lines in the exports file in the same way as for NFSv2 and NFSv3. > > __Martin > _______________________________________________ > 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" >