It is often useful to get a complete listing of all attributes pertaining to a ZFS pool or share in Solaris. ZFS provides an easy way to do this using the “get” parameter. An example of getting attributes on a zpool:
root@solaris:~# zfs get all pool NAME PROPERTY VALUE SOURCE pool type filesystem - pool creation Thu Jul 28 4:26 2011 - pool used 233K - pool available 357M - pool referenced 41.4K - pool compressratio 1.00x - pool mounted yes - pool quota none default pool reservation none default pool recordsize 128K default pool mountpoint /pool default pool sharenfs off default pool checksum on default pool compression off default pool atime on default pool devices on default pool exec on default pool setuid on default pool readonly off default pool zoned off default pool snapdir hidden default pool aclinherit restricted default pool canmount on default pool xattr on default pool copies 1 default pool version 5 - pool utf8only off - pool normalization none - pool casesensitivity sensitive - pool vscan off default pool nbmand off default pool sharesmb off default pool refquota none default pool refreservation none default pool primarycache all default pool secondarycache all default pool usedbysnapshots 0 - pool usedbydataset 41.4K - pool usedbychildren 192K - pool usedbyrefreservation 0 - pool logbias latency default pool dedup off default pool mlslabel none default pool sync standard default pool encryption off - pool keysource none default pool keystatus none - pool rekeydate - default pool rstchown on default
This can also be performed on a share within a pool. It is important to note that there is often inheritance that takes place. If an attribute is set on the pool, and a share is created within the pool, the share will inherit the attributes from the pool.
Solaris ZFS uses attribute based features which greatly improves file system management.
Leave a Reply
You must be logged in to post a comment.