Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

ZFS Troubleshooting

Direct answer

ZFS troubleshooting starts with zpool status -v and the pool's events, then checks capacity, running scrubs or resilvers, dataset properties and the health of the underlying disks. Preserve the pool layout and error details before importing, replacing disks or changing properties.

When to use this

Use it as the entry point when something on ZFS fails and you need to find the failing layer.

First 30 seconds

1. Check pool state (ONLINE/DEGRADED/FAULTED/SUSPENDED).

2. Errors per device: READ/WRITE/CKSUM.

3. Full pool → slow and risky; free space.

4. Import problems: zpool import to list, -F only as last resort.

5. Check ARC/memory for performance issues.

Operational verification

symptom → zpool status → device/pool → fix

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

A ZFS status/error observation identifies current state at one layer, not root cause. Root cause requires correlation to the first failing step and successful original-test verification after correction.

Suspicious evidence: multiple changes are made before evidence capture, devices are replaced by guessed identity, counters are cleared without root cause, pool import success is treated as integrity evidence, or errors recur after temporary recovery.

Platform / version applicability
ZFS storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformZFS storage · Linux/ZFS
Key commandzpool status -v
Scope / prerequisiteUse it as the entry point when something on ZFS fails and you need to find the failing layer.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

symptom/time → workload/dataset/zvol → pool state/topology → vdev/member errors → capacity/scan/cache-log-special state → lower path/media → minimal change → original workload/checksum verification → regression check

Healthy evidence: topology and device identity match design, no unexplained persistent errors grow, capacity and scan state are controlled, and the original workload plus checksum/read-back succeeds after correction.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Symptom ≠ root cause.
  • Pool DEGRADED ≠ automatically data loss.
  • Pool ONLINE ≠ every block verified.
  • Cleared counters or temporary recovery ≠ durable fix.
Key checks
  • zpool status -v — state and errors
  • zpool events -v | tail -50 — recent events
  • dmesg | grep -i -e zfs -e 'I/O error' — kernel errors
ReferenceImportant terms & boundaries3 sections · depth on demand

Topology

A ZFS status/error observation identifies current state at one layer, not root cause. Root cause requires correlation to the first failing step and successful original-test verification after correction.

In depth

One command shows most of what you need

zpool-status(8) documents the options that make troubleshooting fast:

OptionUse
-xShow only pools with errors or that are unavailable
-vList files with data errors
-eShow only unhealthy vdevs
-sCount slow I/Os per leaf vdev
-P / -LFull or resolved device paths
-T dAdd a timestamp (useful with an interval)
-jJSON output for monitoring
# zpool status -x
all pools are healthy
# zpool status -sv tank
        NAME                        STATE     READ WRITE CKSUM  SLOW
        tank                        ONLINE       0     0     0     -
          mirror-0                  ONLINE       0     0     0     -
            nvme-SAMSUNG_A          ONLINE       0     0     0     0
            nvme-SAMSUNG_B          ONLINE       0     0    12    41
# zpool events -v | tail -40
# zpool iostat -v tank 5

Each vdev has READ, WRITE and CKSUM counters.

Symptom map

SymptomFirst check
Pool DEGRADED/FAULTEDzpool status -x, then the device's SMART data
CKSUM errors on one deviceCable, slot, disk; zpool clear only after fixing
Slow poolzpool iostat -v per vdev, -s for slow I/Os, arc_summary
Pool won't importzpool import lists pools; check device paths and hostid
Capacity above ~80 %Fragmentation and write slowdown; zpool list -o name,cap,frag
Snapshot spacezfs list -o space

Rules

  • Use /dev/disk/by-id names so a device change shows the real disk.
  • zpool clear resets the counters. It does not fix the cause.
  • Record zpool status and zpool events before replacing hardware.

Illustrative example (not a system capture).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Method

Start with zpool status -x (only unhealthy pools) and read the action line ZFS prints.

State / symptomMeaningAction
DEGRADEDA device is faulted or missing, redundancy reducedReplace device, check backups
FAULTED / UNAVAILDevice or vdev unusableCheck cabling, zpool online, replace
CKSUM errorsBad data readCheck disk, cable, HBA, RAM; zpool clear after fixing
permanent errorsFiles with no good copyRestore listed files from backup
Pool full / slow> 80–90 % used, fragmentationDelete snapshots, add vdev
Pool not importedDevice names changed, hostidzpool import -d /dev/disk/by-id tank
zpool status -v; zpool events -v | tail -50
zpool iostat -vl 5          # per-device latency
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docZFS storage current

Authoritative/upstream documentation reviewed for bounded claims in ZFS → ZFS Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
zfs troubleshootingzpool troubleshootingzfs errors
Embedded reference data

Quick lookup tables

ZFS → ZFS Troubleshooting ZFS map

Fast topology, capacity, integrity and proof boundaries for ZFS → ZFS Troubleshooting.

ZFS boundaryWhat to verifyProof limit
Identity / topologyPool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective propertiesObject presence alone does not prove integrity, performance or recovery
Capacity / protectionPool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver stateFree space or ONLINE state at one layer does not prove end-to-end health
Failure boundaryA ZFS status/error observation identifies current state at one layer, not root cause. Root cause requires correlation to the first failed boundary and successful original-test verification after correction.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: topology and device identity match design, no unexplained persistent errors grow, capacity and scan state are controlled, and the original workload plus checksum/read-back succeeds after correction.Close only after original workload plus checksum/read-back/recovery verification succeeds
Confirmation

Confirm action

Continue?