Zpool
Cheat sheet · https://pcornel.dk/topic.php?topic=4010
Answer
A zpool consists of one or more top-level normal vdevs plus optional auxiliary vdev classes such as log, cache and special. Data allocation is distributed across top-level normal vdevs; redundancy and failure tolerance are properties of each vdev. A pool can therefore contain heterogeneous vdev widths, but such designs complicate capacity, performance and failure reasoning.
Remember
- Zpool ≠ single RAID group.
- Adding a new top-level vdev expands the pool but does not re-stripe old data uniformly across all vdevs.
- Pool ONLINE ≠ all historical data verified.
- Pool capacity ≠ usable dataset capacity after reservations, quotas and metadata overhead.
First checks
zpool list -v— vdevs and capacityzpool get all <pool> | grep -E 'ashift|autotrim|autoexpand'— pool propertieszpool history <pool> | tail— recent commands
Commands
sudo zpool status -v- ZFS pool/vdev state and errors.
zpool status- Read current ZFS state for a bounded verification step.
Verify in this order
vdevs → pool → datasets
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
ZFS → Zpool ZFS map
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | An imported ONLINE pool proves enough current vdev members are available for ZFS to operate; it does not prove every vdev has equal performance, all blocks are error-free, or backups are valid. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: expected pool GUID/name and vdev topology are present, capacity headroom is understood, device errors are stable at zero or explained, and representative I/O plus recent integrity scans are clean. | Close only after original workload plus checksum/read-back/recovery verification succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4010