Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2009 17:05:15 +0100
From:      Marcin Bujak <marcin.bujak@openetworks.pl>
To:        freebsd-current@freebsd.org
Subject:   zfs parent/child nfs share problem
Message-ID:  <E91DA1E8-1E79-4339-B6D4-BAB5276D5EB3@openetworks.pl>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E91DA1E8-1E79-4339-B6D4-BAB5276D5EB3>