From owner-freebsd-fs@freebsd.org Wed Jul 1 01:16:55 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C021A9900AB for ; Wed, 1 Jul 2015 01:16:55 +0000 (UTC) (envelope-from petehodur@gmail.com) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 43EC61E4C for ; Wed, 1 Jul 2015 01:16:55 +0000 (UTC) (envelope-from petehodur@gmail.com) Received: by lbcpe5 with SMTP id pe5so3797311lbc.2 for ; Tue, 30 Jun 2015 18:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=zefAk02ZGdz6aoBAhvW0VzkQOzHu9LPX2RLG31F8upU=; b=y5C54u1rX600HuDK4AtsysS/JQUPwbWJyp5DVCDeIWrDLNA0MF+kfE3X3I4SlHSyoa FTdxQrLkIov5ravqd6hMYL40DPlQpRLakQ7mC4U/3WlL2yGhsI29mN2D5IqAlVgtlJlD rmDdwMhOe8jHnWCKb8V5f+70g6Gc1ID1BVdxaBeRAZFmnwKZ0pJgkgFU6AkT114FDv1e 5RWzeZwBtmX7ToREc4QWJrvr8a9FyiBB9fBIxSs7QZSdqc8cvnhDsnmCroaXarGkOA7c zMiuwdqiiEigJH3CtBMbV+L2H2MoalJYCf2z8tFmZh289J5hJDDAIxhYGoEJBYji8oYJ fCvw== X-Received: by 10.112.204.199 with SMTP id la7mr22520771lbc.114.1435713413872; Tue, 30 Jun 2015 18:16:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.30.39 with HTTP; Tue, 30 Jun 2015 18:16:34 -0700 (PDT) From: Peter Hodur Date: Wed, 1 Jul 2015 03:16:34 +0200 Message-ID: Subject: NFSv4 & ZFS question To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 01:16:55 -0000 Hello, just starting and migrating storage server from NFSv3 to NFSv4. I have read everything including man nfsv4 and found this: .............. The nfsd(8) allows a limited subset of operations to be performed on non- exported subtrees of the local file system, so that traversal of the tree to the exported subtrees is possible. As such, the ``'' can be in a non-exported file system. The exception is ZFS, which checks exports and, as such, all ZFS file systems below the ``'' must be exported. However, the entire tree that is rooted at that point must be in local file systems that are of types that can be NFS exported. Since the NFSv4 file system is rooted at ``'', setting this to anything other than ``/'' will result in clients being required to use different mount paths for NFSv4 than for NFS Version 2 or 3. Unlike NFS Version 2 and 3, Version 4 allows a client mount to span across multiple server file systems, although not all clients are capable of doing this. .................. How can I understand: "The exception is ZFS, which checks exports and, as such, all ZFS file systems below the `'' must be exported." Why? So when I add "V4: /" in /etc/exports then I must export ALL (including zroot) filesystems? Is this bug or it is true and is better to make /exports a below this directory move all "shared filesystems"? thanks Peter