# zpool create pool mirror disk 1 disk 2 mirror disk 3 disk 4
# zpool create users mirror c1t1d0 c1t2d0 mirror c2t1d0 c2t2d0
# zfs create filesystem
# zfs create users/home
zfs create -o multilevel=on filesystem
For more information, see the clearance(7) man page.
For example, to create an NFS share and set the share.nfs property for users/home, you would type:
# zfs set share.nfs=on users/home
When using this new syntax, each file system contains an "auto share" that is created as soon as the share.nfs property (or the share.smb property) is set to on for that file system. The previous command shares a file system named users/home and all of its children.
If you assign a multilevel home directory to a user, then you must enable labeled sharing while sharing file systems.
zfs set share.nfs=on share.nfs.labeled=on filesystem
# zfs get -r share.nfs users/home
The –r option displays all of the descendent file systems.