Sunday, March 10, 2013

ZFS experiments sketch - some interesting commands

This is just a "notebook/cheatsheet page" for myself. Just to store some commands I used for my ZFS experiments.

zpool create -o ashift=12 tank /dev/disk/by-id/ata-ST31000340AS_5QJ0TXXH /dev/disk/by-id/ata-ST31000340AS_5QJ0WHFC

zfs create tank/store

zfs set compression=on tank


zfs set sync=disabled tank
zfs set atime=off tank

^^ Taken from a thread in http://forums.whirlpool.net.au/archive/1906003




root@desktop:/tank/store# zpool list
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
tank  1.81T  17.3G  1.80T     0%  1.00x  ONLINE  -




root@desktop:/tank/store# zfs get compressratio tank/store
NAME        PROPERTY       VALUE  SOURCE
tank/store  compressratio  1.12x  -

root@desktop:/tank/store# zpool iostat -v
                                capacity     operations    bandwidth
pool                         alloc   free   read  write   read  write
---------------------------  -----  -----  -----  -----  -----  -----
tank                         75.7G  1.74T    289    536  33.0M  61.0M
  ata-ST31000340AS_5QJ0TXXH  37.8G   890G    144    268  16.5M  30.5M
  ata-ST31000340AS_5QJ0WHFC  37.8G   890G    145    268  16.5M  30.5M
---------------------------  -----  -----  -----  -----  -----  -----

root@desktop:/tank/store# zfs list
NAME         USED  AVAIL  REFER  MOUNTPOINT
tank         131G  1.66T   144K  /tank
tank/store   131G  1.66T   131G  /tank/store


No comments: