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_at_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_at_zega) /etc/zfs# (root_at_zega) /etc/zfs# cat /etc/zfs/exports # !!! DO NOT EDIT THIS FILE MANUALLY !!! (root_at_zega) /etc/zfs# (root_at_zega) /etc/zfs# showmount -e Exports list on localhost: /export0 10.0.0.3 (root_at_zega) /etc/zfs# (root_at_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_at_zega.mikej.com:/usr/obj/usr/src/sys/ZEGA i386 (root_at_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_at_rinet.ru] Sent: Wednesday, March 05, 2008 1:44 AM To: Scot Hetzel Cc: Michael Jung; current_at_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_at_FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck_at_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.Received on Wed Mar 05 2008 - 12:34:13 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC