Use it as the entry point when something on ZFS fails and you need to find the failing layer.
ZFS Troubleshooting
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.
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.
symptom → zpool status → device/pool → fix
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
zpool status -vPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- Symptom ≠ root cause.
- Pool DEGRADED ≠ automatically data loss.
- Pool ONLINE ≠ every block verified.
- Cleared counters or temporary recovery ≠ durable fix.
zpool status -v— state and errorszpool events -v | tail -50— recent eventsdmesg | 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:
| Option | Use |
|---|---|
-x | Show only pools with errors or that are unavailable |
-v | List files with data errors |
-e | Show only unhealthy vdevs |
-s | Count slow I/Os per leaf vdev |
-P / -L | Full or resolved device paths |
-T d | Add a timestamp (useful with an interval) |
-j | JSON 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
| Symptom | First check |
|---|---|
| Pool DEGRADED/FAULTED | zpool status -x, then the device's SMART data |
| CKSUM errors on one device | Cable, slot, disk; zpool clear only after fixing |
| Slow pool | zpool iostat -v per vdev, -s for slow I/Os, arc_summary |
| Pool won't import | zpool import lists pools; check device paths and hostid |
| Capacity above ~80 % | Fragmentation and write slowdown; zpool list -o name,cap,frag |
| Snapshot space | zfs list -o space |
Rules
- Use
/dev/disk/by-idnames so a device change shows the real disk. zpool clearresets the counters. It does not fix the cause.- Record
zpool statusandzpool eventsbefore replacing hardware.
Illustrative example (not a system capture).
Method
Start with zpool status -x (only unhealthy pools) and read the action line ZFS prints.
| State / symptom | Meaning | Action |
|---|---|---|
| DEGRADED | A device is faulted or missing, redundancy reduced | Replace device, check backups |
| FAULTED / UNAVAIL | Device or vdev unusable | Check cabling, zpool online, replace |
| CKSUM errors | Bad data read | Check disk, cable, HBA, RAM; zpool clear after fixing |
permanent errors | Files with no good copy | Restore listed files from backup |
| Pool full / slow | > 80–90 % used, fragmentation | Delete snapshots, add vdev |
| Pool not imported | Device names changed, hostid | zpool import -d /dev/disk/by-id tank |
zpool status -v; zpool events -v | tail -50
zpool iostat -vl 5 # per-device latency
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
ZFS → ZFS Troubleshooting ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → ZFS Troubleshooting.
| 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 | A 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 |
| Acceptance | 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. | Close only after original workload plus checksum/read-back/recovery verification succeeds |