Skip to content

ZFS

ZFS combines a file system with a volume manager.

Usage

Mount a pool as readonly

zpool import -o readonly=on {{ pool_name }}

Mount a ZFS snapshot in a directory as readonly

mount -t zfs {{ pool_name }}/{{ snapshot_name }} {{ mount_path }} -o ro

List volumes

zpool list

List snapshots

zfs list -t snapshot

Get read and write stats from pool

zpool iostat {{ pool_name }} {{ refresh_time_in_seconds }}

Last update: 2020-10-29