ZFS Dataset Size

A simple entry on how to discover or set the size for a given ZFS dataset as occasionaly we need to increase the size of a ZFS dataset.

  1. Check dataset current size:
    # zfs list zfsmount/smurfpi
    NAME USED AVAIL REFER MOUNTPOINT
    zfsmount/smurfpi 351M 59.7G 351M /data/smurfpi
  2. Check current size of data set:
    # zfs get quota,reservation zfsmount/smurfpi
    NAME PROPERTY VALUE SOURCE
    zfsmount/smurfpi quota 60G local
    zfsmount/smurfpi reservation none default
    From the above we can see that the size of the dataset is currently 60GB,
  3. To increase size of dataset,
    # zfs set quota=100G zfsmount/smurfpi
    The above will increase the size of the dataset to 100GB