From owner-freebsd-fs@FreeBSD.ORG Fri Feb 20 21:17:26 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 B08D4AA6 for ; Fri, 20 Feb 2015 21:17:26 +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 837B5B53 for ; Fri, 20 Feb 2015 21:17:26 +0000 (UTC) Received: by quine.pinyon.org (Postfix, from userid 122) id 0EEB6160254; Fri, 20 Feb 2015 14:10:42 -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 83B151601CF for ; Fri, 20 Feb 2015 14:10:39 -0700 (MST) Message-ID: <54E7A2CF.60804@pinyon.org> Date: Fri, 20 Feb 2015 14:10:39 -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> In-Reply-To: <4257601.p3oiXZFr4n@falbala.rz1.convenimus.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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, 20 Feb 2015 21:17:26 -0000 On 02/20/15 12:11, Christian Baer wrote: > Hi everyone! > > I've already asked this question (basically) in the questions list, but I > didn't get anything that really helped me along. I am hoping to get a little > further on this list. > > Using my search engines, I have found out that exporting a ZFS is a by > picky. However I have found no general rules of what to do - yet. > > My file server is called obelix, my workstation falbala. Feel free to make > fun of that fact. :-) > > obelix boots from an SSD. There is a raidz2 configured with 7 HDDs, mounted > under /zfs/arc1. This is the main (basic, root) mount point of the ZFS pool > and it is pretty much empty. There are other tanks I have defined and they > are under /usr/archive/. The directory /usr/archive/ is of course still part > of the SSD. > > When I set /usr/archive as an export in /etc/exports, I can mount that from > falabala. I see all the subdirectories too - each of these are ZFS tanks. > However, I cannot access the contents of the tanks. I've played around here > a bit and there are two things that can happen: > > 1. I can dive into the directories but they look empty from falbala. > 2. Access to the directories is refused completely. > > I don't remember what I did to get each of these results, so please don't > ask. :-) > > Ok, so I read that I cannot export all ZFS mounts together like this and > have to create an export for each seperately. Fine with me. :-) > So I created and export to /usr/archive/shared which is the mount point of a > ZFS tank. But if I try to mount that via NFS from falbala, the connection is > denied completely. This is logged in /var/log/messages on obelix - without > any reason however. > > Now it might be that I am just to dumb to understand the works of NFS and > ZFS or I am just missing a piece of the puzzle. Can someone please give me a > push, please? 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. You can quickly check that sharenfs=on via mount: root@terpsichore> mount | grep NFS system/export on /export (zfs, NFS exported, local, nfsv4acls) system/export/library on /export/library (zfs, NFS exported, local, nfsv4acls) system/export/usr on /export/usr (zfs, NFS exported, local, nfsv4acls) system/export/usr/obj on /export/usr/obj (zfs, NFS exported, local, nfsv4acls) system/export/usr/src on /export/usr/src (zfs, NFS exported, local, nfsv4acls) ssd1/poudriere/ports/default on /ssd1/poudriere/ports/default (zfs, NFS exported, local, nfsv4acls) system/usr/ports on /usr/ports (zfs, NFS exported, local, nosuid, nfsv4acls) system/usr/ports/distfiles on /usr/ports/distfiles (zfs, NFS exported, local, nosuid, nfsv4acls) /raid/library on /export/library (nullfs, NFS exported, local, nfsv4acls) /ssd1/poudriere/data/packages/stable-amd64-default on /export/packages (nullfs, NFS exported, local, nfsv4acls) Russell > Regards, > Chris > > _______________________________________________ > 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" >