Page 1 of 1

ZFS automatic sharing (NFS/SMB/AFP)

PostPosted: Sun Feb 19, 2017 1:28 pm
by haer22
So if I do "zfs smbshare=on tank;zfs share tank" it will be visible locally, yes?
How does that interact/confuse macOS Server file sharing?

Re: ZFS automatic sharing (NFS/SMB/AFP)

PostPosted: Sun Feb 19, 2017 4:40 pm
by lundman
In theory yes, it just runs the command line util "sharing" for you, which in theory should be compatible with OsX as it is an OsX tool.

Re: ZFS automatic sharing (NFS/SMB/AFP)

PostPosted: Thu Mar 16, 2023 11:32 am
by Bottacco
lundman wrote:In theory yes, it just runs the command line util "sharing" for you, which in theory should be compatible with OsX as it is an OsX tool.

Ok but, what would be the best way to share a dataset in macOS/OSX? Via the zfs property or via the sharing system preference?

I have created a pool "bigdata" and under it three datasets, "Archive", "InProgress" and "Status" and then shared them via the sharing system preference assigning privileges and in advance options allowing guests to connect and share it only via SMB. They work when I connect from another Mac but…

… when I list all the settings under the dataset with "zfs get all <datasetname>" I see that smbshare is off, so it is not getting the property from the setting in system preferences.

Any suggestions or "correct way of doing things"?

Thanks a lot