Forrest logo
tool overview
On this page you find all important commands for the CLI tool zpool. If the command you are looking for is missing please ask our AI.

zpool

The zpool command configures ZFS storage pools. A storage pool is a collection of devices that provides physical storage and data replication for ZFS datasets. All datasets within a storage pool share the same space. See zfs(8) for information on managing datasets.

List of commands for zpool:

  • zpool:tldr:25c55 zpool: Create a mirrored pool.
    $ zpool create ${pool_name} mirror ${disk1} ${disk2} mirror ${disk3} ${disk4}
    try on your machine
    explain this command
  • zpool:tldr:3c467 zpool: List zpools available for import.
    $ zpool import
    try on your machine
    explain this command
  • zpool:tldr:6a8d1 zpool: Import a zpool.
    $ zpool import ${pool_name}
    try on your machine
    explain this command
  • zpool:tldr:6b5fd zpool: Show the history of all pool operations.
    $ zpool history ${pool_name}
    try on your machine
    explain this command
  • zpool:tldr:7e2fc zpool: Check a ZFS pool for errors (verifies the checksum of EVERY block). Very CPU and disk intensive.
    $ zpool scrub ${pool_name}
    try on your machine
    explain this command
  • zpool:tldr:d0b37 zpool: Export a zpool (unmount all filesystems).
    $ zpool export ${pool_name}
    try on your machine
    explain this command
  • zpool:tldr:dd04e zpool: Add a cache (L2ARC) device to a zpool.
    $ zpool add ${pool_name} cache ${cache_disk}
    try on your machine
    explain this command
  • zpool:tldr:f51ca zpool: Show the configuration and status of all ZFS zpools.
    $ zpool status
    try on your machine
    explain this command
tool overview