zfs parent/child nfs share problem

Marcin Bujak marcin.bujak at openetworks.pl
Fri Nov 27 16:25:00 UTC 2009


Hi
How can I properly share ZFS trough NFS with a child ZFS filesystems  
mounted in ?

What I did;
on server1:
zfs create something/test1
zfs create something/test2
zfs list
something
something/test1
something/test2
zfs sharenfs=on something

on server2:
showmount -e server1
Exports list on server1:
/something/test1
/something/test2
/something

mount server1:something /something
ls /something
test1 test2

touch /something/test1/testfile
ls /something/test1/testfile
/something/test1/testfile

on server1:
ls /something/test1/testfile
ls: /something/test1/testfile: No such file or directory

zfs umount something/test1
ls /something/test1/testfile
/something/test1/testfile

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 ?

regards
marcin



More information about the freebsd-current mailing list