ZFS Pool Degraded
Cheat sheet · https://pcornel.dk/topic.php?topic=4406
Answer
Trace dataset/zvol → zpool → top-level vdev → mirror/RAIDZ leaf devices → path/media → checksum errors → resilver/scrub → data read-back. Pool availability depends on top-level vdev availability.
Remember
- DEGRADED ≠ FAULTED pool.
- One degraded leaf ≠ every dataset is corrupt.
- Checksum detection ≠ repair without a valid redundant copy.
- Resilver ≠ scrub; they have different purposes and triggers.
First checks
zpool status -x— DEGRADEDzpool status -v— device errorszpool replace <pool> <old> <new>— replace
Commands
zpool status -v- Display ZFS pool/vdev health and errors.
zpool offlinesmartctl -izpool online tank <dev>zpool clear tankzpool replace tank ata-ST8000-ZA2 /dev/disk/by-id/ata-NEW...zpool statuszpool scrub tank
Verify in this order
device problem → DEGRADED → replace → resilver → ONLINE
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Storage Troubleshooting → ZFS Pool Degraded proof map
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Dataset/zvol → zpool → top-level vdev → leaf devices → path/media → checksum state → resilver → pool/data verification | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A DEGRADED pool proves redundancy or device availability is reduced; it does not prove the pool is unreadable or that all data is intact. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows expected ONLINE topology, completed resilver, stable error counters and successful dataset/zvol read-back. | Close only after the original workload/recovery test and regression check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4406