From owner-freebsd-current@FreeBSD.ORG Wed Mar 5 13:34:13 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44246106566C; Wed, 5 Mar 2008 13:34:13 +0000 (UTC) (envelope-from mikej@paymentallianceintl.com) Received: from mx2.confluenttech.com (mx2.confluentasp.com [216.26.153.14]) by mx1.freebsd.org (Postfix) with ESMTP id 13AA68FC2B; Wed, 5 Mar 2008 13:34:10 +0000 (UTC) (envelope-from mikej@paymentallianceintl.com) Received: from calvin.pai.local ([10.0.6.33]) by mx2.confluenttech.com (8.14.1/8.12.9) with ESMTP id m25DYaGN003158; Wed, 5 Mar 2008 08:34:37 -0500 (EST) (envelope-from mikej@paymentallianceintl.com) x-mimeole: Produced By Microsoft MimeOLE V6.00.3790.4133 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 5 Mar 2008 08:33:50 -0500 Message-ID: In-Reply-To: <20080305094125.G19039@woozle.rinet.ru> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ZFS sharenfs and NFS options Thread-Index: Ach+jHoXKceHC5j7Q9+EFI1X49UIkgANwT0g References: <20080304233327.B19039@woozle.rinet.ru> <790a9fff0803041838m2e9e124fnfc2560fde62f0e08@mail.gmail.com> <20080305094125.G19039@woozle.rinet.ru> From: "Michael Jung" Importance: normal Priority: normal To: "Scot Hetzel" , Cc: Pawel Jakub Dawidek , current@freebsd.org Subject: RE: ZFS sharenfs and NFS options 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: Wed, 05 Mar 2008 13:34:13 -0000 When does /etc/zfs/exports get written? Should you have to HUP mountd after adding the nfs share via "zfs set sharenfs=....."? it doesn't make any difference for me. Should showmount -e show the zfs exported NFS share? (root@zega) /etc/zfs# zfs get sharenfs tank/export1 NAME PROPERTY VALUE SOURCE tank/export1 sharenfs -maproot=root -alldir -network 10.0.0.3 -mask 255.255.255.255 local (root@zega) /etc/zfs# (root@zega) /etc/zfs# cat /etc/zfs/exports # !!! DO NOT EDIT THIS FILE MANUALLY !!! (root@zega) /etc/zfs# (root@zega) /etc/zfs# showmount -e Exports list on localhost: /export0 10.0.0.3 (root@zega) /etc/zfs# (root@zega) /etc/zfs# uname -a FreeBSD zega.mikej.com 7.0-STABLE FreeBSD 7.0-STABLE #2: Sun Mar 2 20:39:38 UTC 2008 mikej@zega.mikej.com:/usr/obj/usr/src/sys/ZEGA i386 (root@zega) /etc/zfs# NOTE****** /export0 is exported via /etc/exports Needless to say, I'm not able to mount export1 on 10.0.0.3 when I share it via the "zfs set sharenfs" command. exporting the ZFS mount point via /etc/exports works fine. --mikej -----Original Message----- From: Dmitry Morozovsky [mailto:marck@rinet.ru] Sent: Wednesday, March 05, 2008 1:44 AM To: Scot Hetzel Cc: Michael Jung; current@freebsd.org; Pawel Jakub Dawidek Subject: Re: ZFS sharenfs and NFS options On Tue, 4 Mar 2008, Scot Hetzel wrote: SH> > what is a way to specify NFS options, such as -maproot and SH> > -network, on an ZFS filesystem? Man page is almost quiet about SH> > it, and my quick experiments did not show any success... SH> > SH> > I suppose, it should be documented a bit more... SH> > SH> It is documented in the zfs(1M) man page. SH> SH> zfs set sharenfs="-maproot=root -alldir -network 10.0.0.3 -mask SH> 255.255.255.255" myzpool/test SH> SH> cat /etc/zfs/exports SH> # !!! DO NOT EDIT THIS FILE MANUALLY !!! SH> SH> /myzpool/test -maproot=root -alldir -network 10.0.0.3 -mask 255.255.255.255 Hmm... where did you find it in the manpage? Or did you mean Solaris man page version? Anyway, thanks, it is working now. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ CONFIDENTIALITY NOTE: This message is intended only for the use of the individual or entity to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, please notify us by telephone at (502) 212-4001 or notify us at PAI , Dept. 99, 11857 Commonwealth Drive, Louisville, KY 40299. Thank you.