ZFS filesystem: export for more than one subnet
Dmitry Morozovsky
marck at rinet.ru
Mon Sep 8 09:26:32 UTC 2008
On Mon, 8 Sep 2008, Jeremy Chadwick wrote:
[snip]
JC> It does support CIDR, and the output mountd gave you even shows that
JC> it does (look closely at what "bad host" it's giving you -- that isn't
JC> the first host in the exports list!).
Yes, I already catched it; see below.
JC> You changed the syntax of what I gave you as an example. Look closely:
JC>
JC> # zfs set sharenfs="ro,network=aaa/xx,network=bbb/yy,network=ccc/zz" some_fs
JC>
JC> Here's what you typed in:
JC>
JC> # zfs set sharenfs="ro,alldirs,network=195.54.192.0/26,192.168.39.0/24" bv/FreeBSD
Anyway, it does not work, alas:
marck at beaver:~# zfs set sharenfs="ro,alldirs,network=195.54.192.0/26,network=192.168.39.0/24" bv/FreeBSD
marck at beaver:~# tail /var/log/daemon
Sep 8 13:22:11 <daemon.err> beaver mountd[25992]: network/host conflict
Sep 8 13:22:11 <daemon.err> beaver mountd[25992]: bad exports list line /FreeBSD -ro -alldirs -network
marck at beaver:~# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!
/FreeBSD -ro -alldirs -network=195.54.192.0/26 -network=192.168.39.0/24
What I' m trying to express is that there would be need to export the same file
system to different address blocks *with different options* - -such as rw/ro,
and/or maproot/mapall.
I'm starting to think we should either mimic such functionality from
OpenSolaris or invent it.
Thank you for cooperation!
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-fs
mailing list