For more information about the ZFS rights profiles, see ZFS Rights Profiles.
# zfs create tank/home
After the file system hierarchy is established, set up any properties to be shared among all users:
# zfs set mountpoint=/export/zfs tank/home # zfs set share.nfs=on tank/home # zfs set compression=on tank/home # zfs get compression tank/home NAME PROPERTY VALUE SOURCE tank/home compression on local
You can set file system properties when the file system is created. For example:
# zfs create -o mountpoint=/export/zfs -o share.nfs=on -o compression=on tank/home
For more information about properties and property inheritance, see Introducing ZFS Properties.
Next, individual file systems are grouped under the home file system in the pool tank.
File systems could have been created and then the properties could have been changed at the home level. All properties can be changed dynamically while file systems are in use.
# zfs create tank/home/jeff # zfs create tank/home/bill
These file systems inherit their property values from their parent, so they are automatically mounted at /export/zfs/user and are NFS shared. You do not need to edit the /etc/vfstab or /etc/dfs/dfstab file.
For more information about creating file systems, see Creating a ZFS File System.
For more information about mounting and sharing file systems, see Mounting ZFS File Systems.
# zfs set quota=10G tank/home/jeff
View available file system information by using the zfs list command:
# zfs list NAME USED AVAIL REFER MOUNTPOINT tank 92.0K 67.0G 9.5K /tank tank/home 24.0K 67.0G 8K /export/zfs tank/home/bill 8K 67.0G 8K /export/zfs/bill tank/home/jeff 8K 10.0G 8K /export/zfs/jeff
For more information about viewing file system status, see Querying ZFS File System Information.
For more information about how disk space is used and calculated, see ZFS Disk Space Accounting.