Remove all snapshots of a dataset:

zfs destroy -rvn dataset_or_vol_name@%

or selectively via grep:

zfs list -H -o name -t snapshot | grep ola/lala@2019 | xargs -n1 zfs destroy -n

List all snapshots:

zfs list -t snapshot

Copy dataset recursively

zfs snapshot -r tank/dataset@fullbackup
zfs send -R tank/dataset@fullbackup | pv | zfs receive -vFdu myBackupPool
zfs destroy -r tank/dataset@fullbackup

Monitoring of cache:

arcstat -f time,arcsz,mm%,mhit,mread,dread,pread 10

Expanding a pool:

zpool set autoexpand=on pool
  • faq/zfs.txt
  • Last modified: 9 months ago
  • by Dr Serge Victor