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

One Response to “Quick word on creating ZFS shares”

  1. Mark Musante says:

    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

Leave a Reply

Line and paragraph breaks automatic.
XHTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Comments Protected by WP-SpamShield Spam Filter