Veranstaltungen/2009-12-04 ZFS-Workshop/Pool-Eigenschaften

Aus UUGRN

Jedes ZFS-Dataset hat eine Hand voll Eigenschaften.

shl@lightbulb:~$ zfs get all strangepool/justatest
NAME                   PROPERTY              VALUE                   SOURCE
strangepool/justatest  type                  filesystem              -
strangepool/justatest  creation              Thu Dec  3 16:06 2009   -
strangepool/justatest  used                  19K                     -
strangepool/justatest  available             392G                    -
strangepool/justatest  referenced            19K                     -
strangepool/justatest  compressratio         1.00x                   -
strangepool/justatest  mounted               yes                     -
strangepool/justatest  quota                 none                    default
strangepool/justatest  reservation           none                    default
strangepool/justatest  recordsize            128K                    default
strangepool/justatest  mountpoint            /strangepool/justatest  default
strangepool/justatest  sharenfs              off                     default
strangepool/justatest  checksum              on                      default
strangepool/justatest  compression           off                     default
strangepool/justatest  atime                 on                      default
strangepool/justatest  devices               on                      default
strangepool/justatest  exec                  on                      default
strangepool/justatest  setuid                on                      default
strangepool/justatest  readonly              off                     default
strangepool/justatest  zoned                 off                     default
strangepool/justatest  snapdir               hidden                  default
strangepool/justatest  aclmode               groupmask               default
strangepool/justatest  aclinherit            restricted              default
strangepool/justatest  canmount              on                      default
strangepool/justatest  shareiscsi            off                     default
strangepool/justatest  xattr                 on                      default
strangepool/justatest  copies                1                       default
strangepool/justatest  version               3                       -
strangepool/justatest  utf8only              off                     -
strangepool/justatest  normalization         none                    -
strangepool/justatest  casesensitivity       sensitive               -
strangepool/justatest  vscan                 off                     default
strangepool/justatest  nbmand                off                     default
strangepool/justatest  sharesmb              off                     default
strangepool/justatest  refquota              none                    default
strangepool/justatest  refreservation        none                    default
strangepool/justatest  primarycache          all                     default
strangepool/justatest  secondarycache        all                     default
strangepool/justatest  usedbysnapshots       0                       -
strangepool/justatest  usedbydataset         19K                     -
strangepool/justatest  usedbychildren        0                       -
strangepool/justatest  usedbyrefreservation  0                       -

Genauso hat auch ein ZPool Eigenschaften:

shl@lightbulb:~$ zpool get all strangepool
NAME         PROPERTY       VALUE       SOURCE
strangepool  size           398G        -
strangepool  used           137K        -
strangepool  available      398G        -
strangepool  capacity       0%          -
strangepool  altroot        -           default
strangepool  health         ONLINE      -
strangepool  guid           9643469012468915043  default
strangepool  version        14          default
strangepool  bootfs         -           default
strangepool  delegation     on          default
strangepool  autoreplace    off         default
strangepool  cachefile      -           default
strangepool  failmode       wait        default
strangepool  listsnapshots  off         default

Diese Eigenschaften können mit zfs set $foo=$bar bzw. zpool set $foo=$bar gesetzt werden.

Beispiel:

shl@lightbulb:~$ pfexec zfs set compression=on pool/dataset

Alle gesetzten Attribute vererben sich nach unten in der Hierarchie. Das oben genannte Beispiel schaltet die Kompression für alle Datasets unterhalb von pool/dataset ein.


Quellen:

  • ZFS-Wiki Seite
  • man-Pages