Pcornel
Storage · Storage Troubleshooting

ZFS Pool Degraded

Cheat sheet · https://pcornel.dk/topic.php?topic=4406

Back to the Topic

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 — DEGRADED
  • zpool status -v — device errors
  • zpool replace <pool> <old> <new> — replace

Commands

zpool status -v
Display ZFS pool/vdev health and errors.
zpool offline
smartctl -i
zpool online tank <dev>
zpool clear tank
zpool replace tank ata-ST8000-ZA2 /dev/disk/by-id/ata-NEW...
zpool status
zpool 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 boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathDataset/zvol → zpool → top-level vdev → leaf devices → path/media → checksum state → resilver → pool/data verificationHealthy adjacent layers do not prove end-to-end health
Failure boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?