Quick word on creating ZFS shares
Ok, first make the share (I assume you already have a pool)
zfs create -o casesensitivity=mixed -o nbmand=on (poolname)/(newshare)
zfs set sharesmb=on (poolname)/(newshare)
(to define the name for the share zfs set sharesmb=name=(sharename) (poolname)/(newshare)
zfs set compression=on (poolname)/(newshare)
If you screw up just zfs destroy (poolname)/(newshare)
Now just set the acl’s and you are ready to go… :)
zfs set dedup=on (poolname)/(newshare)
Check the share with
sharemgr show -vp
August 2nd, 2010
If you like, you can combine these all into a single command, by putting all the -o = on one line.
Another trick is to create a parent filesystem with all the properties set the way you like except sharesmb:
# zfs create -o casesensitivity=mixed -o nbmand=on -o compression=on -o dedup=on mypool/top
And then creating the shares is easier, because each of those properties is inherited from the parent:
# zfs create -o sharesmb=on mypool/top/newshare