From owner-freebsd-fs@FreeBSD.ORG Sun Apr 28 20:45:36 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F18ED2AF for ; Sun, 28 Apr 2013 20:45:36 +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 BBD101437 for ; Sun, 28 Apr 2013 20:45:36 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEANWJfVGDaFvO/2dsb2JhbABTgz2DN7sPgRZ0gh8BAQUjVhsYAgINGQJZBhMZh32sEJAmgSOMLIEXNAeCPIETA5NPg0+RKoMtIIFs X-IronPort-AV: E=Sophos;i="4.87,568,1363147200"; d="scan'208";a="27611648" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 28 Apr 2013 16:45:35 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 50DB5B406C; Sun, 28 Apr 2013 16:45:35 -0400 (EDT) Date: Sun, 28 Apr 2013 16:45:35 -0400 (EDT) From: Rick Macklem To: =?utf-8?Q?Olav_Gr=C3=B8n=C3=A5s_Gjerde?= Message-ID: <1666951718.1200997.1367181935273.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: Subject: Re: nfsv3 vs nfsv4 ? advantages of moving to v4? 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: Sun, 28 Apr 2013 20:45:37 -0000 Olav Gronas Gjerde wrote: > If you have three ZFS filesystems: > > tank > tank/backup > tank/home > > > And if you export /tank with nfsv3, you don't really export > /tank/backup and /tank/home. > You only export the folders, but not it's content > I think it has to do with that you cannot export mounted filesystems > within one exported filesystem. > > > With nfsv4 you will with only one export of /tank, export all three, > including /tank/backup and /tank/home > > > This was an issue 18 months ago, I cannot confirm if it's still an > issue. > > > > > > On Sun, Apr 28, 2013 at 4:58 PM, Jeremy Chadwick < jdc@koitsu.org > > wrote: > > > > > On Sun, Apr 28, 2013 at 04:53:53PM +0200, Olav Grns Gjerde wrote: > > The main reason I moved to nfsv4 was that I could export multiple > > ZFS > > filesystem with just one export. With nsfv3 I could only export one > > ZFS > > filesystem per export. > > When you say "one/per export", what exactly do you mean? > > For exporting ZFS filesystems via NFS, I've always used /etc/exports. > I've never used the "share" property per ZFS filesystem, because in my > experience (at the time -- this was early days of ZFS on FreeBSD) it > just flat out didn't work. Using /etc/exports always worked for me. > > I always liked having all my exported filesystems in one place > (/etc/exports), versus UFS ones in /etc/exports + ZFS ones requiring > me > to use "zfs get ..." and so on. > > Does it really bother you that much to have multiple lines in > /etc/exports (using NFSv3)? > For /etc/exports, you will still need the three lines for NFSv4. (I don't know anything about the ZFS specific export stuff.) For the client side mount, you only need to mount /tank over NFSv4 in order to see all three (if they are all exported to the client). (You can still do them 3 mounts, but the outcome is the same as one mount for NFSv4.) rick > -- > | Jeremy Chadwick jdc@koitsu.org | > | UNIX Systems Administrator http://jdc.koitsu.org/ | > | Mountain View, CA, US | > | Making life hard for others since 1977. PGP 4BD6C0CB |