zfs parent/child nfs share problem

From: Marcin Bujak <marcin.bujak_at_openetworks.pl>
Date: Fri, 27 Nov 2009 17:05:15 +0100
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
Received on Fri Nov 27 2009 - 15:25:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC