From owner-freebsd-current@FreeBSD.ORG Fri Nov 27 17:47:18 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35A8A106566B for ; Fri, 27 Nov 2009 17:47:18 +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 DCF8F8FC12 for ; Fri, 27 Nov 2009 17:47:17 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAJ+fD0uDaFvJ/2dsb2JhbADUM4QxBIFy X-IronPort-AV: E=Sophos;i="4.47,303,1257138000"; d="scan'208";a="57098352" Received: from ganges.cs.uoguelph.ca ([131.104.91.201]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 27 Nov 2009 12:47:16 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id 05116FB805D; Fri, 27 Nov 2009 12:47:16 -0500 (EST) X-Virus-Scanned: amavisd-new at ganges.cs.uoguelph.ca Received: from ganges.cs.uoguelph.ca ([127.0.0.1]) by localhost (ganges.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0VsrJCUsML5H; Fri, 27 Nov 2009 12:47:14 -0500 (EST) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by ganges.cs.uoguelph.ca (Postfix) with ESMTP id B6F18FB8036; Fri, 27 Nov 2009 12:47:14 -0500 (EST) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id nARHtYx10874; Fri, 27 Nov 2009 12:55:35 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Fri, 27 Nov 2009 12:55:34 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Marcin Bujak In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: zfs parent/child nfs share problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2009 17:47:18 -0000 On Fri, 27 Nov 2009, Marcin Bujak wrote: > Hi > How can I properly share ZFS trough NFS with a child ZFS filesystems mounted > in ? [stuff snipped] > so, the file has been created in the parent filesystem instead of in the > mounted child > when I use mount server1:something/test1 /something then it works properly > zfs sharenfs=off something/test1 doesn't help > > is it possible to share a whole zfs structure in a one single parent share ? > Only if you want to live on the bleeding edge and use NFSv4, via the experimental server/client. NFSv2 and v3 does not allow servers to cross mount pt/volume boundaries, so each has to be exported and mounted separately. (fyi, even the Solaris10 NFSv4 client gets confused by crossing of mount point boundaries and won't work. I believe the Linux client, experimental FreeBSD8 client and maybe OpenSolaris can handle it.) If you choose this route, you'll want the patches in r199616 and r199715 that are in FreeBSD-current and will be MFC'd to stable/8 in a week or so. (If you go to http://svn.freebsd.org/viewvc/base/head/sys/fs/nfsserver, then look at nfs_nfsdserv.c and nfs_nfsdport.c, you should be able to find them. I think I'll try and put them somewhere easy to grab.) You'll also probably want to: sysctl vfs.newnfs.enable_locallocks=0 since the local locks acquired by the experimental server for NFSv4 is currently broken. rick