ZFS Pool Management
Members of a storage pool may either be hard drives or slices of at least 128MB in size.
To create a mirrored pool:
# zpool create -f pool-name mirror c#t#d# c#t#d#
To check a pool's status, run:
# zpool status -v pool-name
To list existing pools:
# zpool list
To remove a pool and free its resources:
# zpool destroy pool-name
A destroyed pool can sometimes be recovered as follows:
# zpool import -D
Additional disks can be added to an existing pool. When this happens in a mirrored or RAID Z pool, the ZFS is resilvered to redistribute the data. To add storage to an existing mirrored pool:
zpool add -f pool-name mirror c#t#d# c#t#d#
Pools can be exported and imported to transfer them between hosts.
# zpool export pool-name # zpool import pool-name
Without a specified pool, the import command lists available pools
# zpool import
To clear a pool's error count, run:
zpool clear pool-name
Although virtual volumes (such as those from DiskSuite or VxVM) can be used as base devices, it is not recommended for performance reasons.