The OSX way of setting up NFS Shares for pools and subvols?

What's the "proper" way to set up an NFS share on macOS with ZFS?
For example, the current recommended method for setting it up via Oracle is:
In my case I'd like to share an entire pool, like this:
But when I do this, it returns an error:
I figure there's a mac way to do this I'm missing.
Further, if I simply do:
I see that the shares are set up in /etc/exports and that subvolumes are shared, however when I go to mount the pool or subvols on another workstation, I get an error:
For example, the current recommended method for setting it up via Oracle is:
- Code: Select all
$ zfs set share=name=fs1,path=/fs1,prot=nfs mypool/fs1
$ zfs set sharenfs=on mypool/fs1
In my case I'd like to share an entire pool, like this:
- Code: Select all
$ zfs set share=name=tank,path=/Volumes/tank,prot=nfs tank
But when I do this, it returns an error:
cannot set property for 'tank': invalid property 'share'
I figure there's a mac way to do this I'm missing.
Further, if I simply do:
- Code: Select all
$ zfs set sharenfs=on tank
I see that the shares are set up in /etc/exports and that subvolumes are shared, however when I go to mount the pool or subvols on another workstation, I get an error:
- Code: Select all
$ mkdir ~/mountpoint
$ sudo mount -v -o intr,noatime -t nfs 192.168.1.45:/Volumes/tank /Users/username/mountpoint
mount: realpath /Users/username/mountpoint: Input/output error