From owner-freebsd-fs@FreeBSD.ORG Fri Feb 27 23:02:31 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 37DEC549 for ; Fri, 27 Feb 2015 23:02:31 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id F2982956 for ; Fri, 27 Feb 2015 23:02:30 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2A4BgBL9vBU/95baINbg1RaBIMGvw8KhGNESQKBcwEBAQEBAXyEDwEBAQMBAQEBICsgCwUWGAICDRkCKQEJJgYIBwQBHASIBggNvTCZcwEBAQEBAQQBAQEBAQEBARqBIYlxhB0BARs0B4JogUMFilqIe4NGJoMlKJIBI4ICHIFuIDEHgQQ5fwEBAQ X-IronPort-AV: E=Sophos;i="5.09,663,1418101200"; d="scan'208";a="195386783" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 27 Feb 2015 18:02:25 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id EE78FB3F86; Fri, 27 Feb 2015 18:02:23 -0500 (EST) Date: Fri, 27 Feb 2015 18:02:23 -0500 (EST) From: Rick Macklem To: Christian Baer Message-ID: <69023850.2194024.1425078143967.JavaMail.root@uoguelph.ca> In-Reply-To: <2401301.b3eZRBi7it@falbala.rz1.convenimus.net> 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.10] 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: Fri, 27 Feb 2015 23:02:31 -0000 Christian Baer wrote: > Martin Simmons wrote: > > > 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. > > I see the part in the manpage you are referring to. The way nfs > reacts > doesn't seem to be that way though. I have changed the contents of > /etc/exports to > > /usr/archive/Shared -alldirs -network 192.168.100/24 > You need both lines for an NFSv4 mount to work. For example: V4: /usr/archive/Shared -network 192.168.100/24 /usr/archive/Shared -alldirs -network 192.168.100/24 Then the client mount command would look like: mount -t nfs -o nfsv4 :/ /mnt - Note that if the V4: line specifies /usr/archive/Shared as its root, then the client mounts that as "/". If you want to mount the same dir as NFSv3, the mount would look like: mount -t nfs -o nfsv3 :/usr/archive/Shared /mnt > I still cannot mount that share. > > The V4: at the beginning of the line did not change anything I could > notice. It enables NFSv4 and tells the server where the client mount's "/" is. > If I let the path point to a ZFS file system, I get permission > denied, when > it points to a path on UFS, it works fine. > > Die directories in question have the correct owner and group. Is > there some > way that ZFS may have a different setting for this? > Not that I am aware, but I am not a ZFS guy, rick > Kind regards, > Christian > > _______________________________________________ > 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" >