ZFS sharenfs and NFS options
Michael Jung
mikej at paymentallianceintl.com
Wed Mar 5 05:34:13 PST 2008
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.
More information about the freebsd-current
mailing list