LinuxCommandLibrary

zpool

ZFS filesystems are built on top of virtual storage pools

TLDR

Show the configuration and status of all ZFS zpools

$ zpool status
copy


Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive
$ zpool scrub [pool_name]
copy


List zpools available for import
$ zpool import
copy


Import a zpool
$ zpool import [pool_name]
copy


Export a zpool (unmount all filesystems)
$ zpool export [pool_name]
copy


Show the history of all pool operations
$ zpool history [pool_name]
copy


Create a mirrored pool
$ zpool create [pool_name] mirror [disk1] [disk2] mirror [disk3] [disk4]
copy


Add a cache (L2ARC) device to a zpool
$ zpool add [pool_name] cache [cache_disk]
copy

Copied to clipboard