From owner-freebsd-fs@FreeBSD.ORG Wed Oct 24 23:56:56 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C44F32B9 for ; Wed, 24 Oct 2012 23:56:56 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC858FC14 for ; Wed, 24 Oct 2012 23:56:56 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAOJ+iFCDaFvO/2dsb2JhbABEhhS9A4IeAQEEASMmMAUWDgoCAg0ZAlkGE4d+BqoZknOBIIpBhVqBEwOVc5A5gwuBfQ X-IronPort-AV: E=Sophos;i="4.80,643,1344225600"; d="scan'208";a="185108569" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 24 Oct 2012 19:56:48 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id A4DF1B405C; Wed, 24 Oct 2012 19:56:48 -0400 (EDT) Date: Wed, 24 Oct 2012 19:56:48 -0400 (EDT) From: Rick Macklem To: Yamagi Burmeister Message-ID: <1319632362.2803236.1351123008648.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20121024213602.b727c557f0332f28a66f87cc@yamagi.org> Subject: Re: Can not read from ZFS exported over NFSv4 but write to it MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 23:56:56 -0000 Yamagi Burmeister wrote: > Hello > > On Tue, 23 Oct 2012 17:55:15 -0400 (EDT) > Rick Macklem wrote: > > > > # ZFS > > > /usr/home/yamagi > > > # UFS > > > /mnt > > > V4: / -sec=sys 192.168.0.13 > > > > > For ZFS, all volumes down to yamagi must be exported. > > You don't show what your ZFS setup is, but you either > > need to export "home" and "usr" if those are ZFS volumes. > > (The above /etc/exports would be ok, only if /, /usr and > > /home are all UFS volumes and /usr/home/yamagi is the root > > of a ZFS volume.) For UFS, non-exported volumes can be > > traversed by "mount", but for ZFS that is not the case. > > > > The only way I know of to fix this inconsistency is to > > disable the traversal capability for UFS, but that would > > be a POLA violation, so the inconsistency (caused by ZFS > > checking exports itself instead of leaving to the VFS layer) > > remains. > > > > OR > > you can specify the root of V4 in the exported volume. > > For example, you could: > > # ZFS > > /usr/home/yamagi > > V4: /usr/home/yamagi -sec=sys 192.168.0.13 > > > > And then the client mount would be: > > a:/ on /mnt > > since "/" would be at /usr/home/yamagi. (If you do this, > > the /mnt UFS volume wouldn't be mountable via NFSv4.) > > Okay, I didn't know that. What about adding a small notice to the > nfsv4 > (4) manpage to put users into the right direction? > Yep, both nfsv4(4) and exports(5) should be fixed for this. (The current man pages were written for non-ZFS cases, because I didn't realize ZFS would be different;-) > A correct /etc/exports didn't solve the problem. So I took some > tcpdumps, while analyzing them I noticed that packages send by client > never arived at the server. After I changed the NIC (I was using a > rather cheap age(4) onboard NIC) everything worked okay. Apparently > NFSv4 exhibited a bug in the driver that never showed up before. Yep, a majority of NFS issues that I've looked at (in particular ones related to terrible performance) have been a network fabric problem and most often the NIC/NIC driver. One common area of difficulties is TSO, so if you wanted to, you could try age(4) again, but with TSO disabled. > I'm > sorry that i've wasted your time. > Not at all wasted, except that my suggestion didn't help;-) Glad you figured it out and let us know. Have fun with it, rick > Thanks again, > Yamagi > > -- > Homepage: www.yamagi.org > XMPP: yamagi@yamagi.org > GnuPG/GPG: 0xEFBCCBCB