Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

zpool status "Permanent errors have been detected in the following files" (ZFS-8000-8A): what is damaged and what to do first

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When zpool status -v prints errors: Permanent errors have been detected in the following files: followed by one or more paths, ZFS has found data that failed its checksum and that it could not rebuild from any other copy. OpenZFS describes message ZFS-8000-8A in these words: "the data cannot be repaired, and the only choice to repair the data is to restore the pool from backup." The pool itself can still report ONLINE, so the state line alone does not tell you that files are damaged. Read the list, save it, and restore those files from a copy you trust.

What the symptom means

The OpenZFS page for ZFS-8000-8A is titled "Corrupted data", has the severity Critical, and gives the description "A file or directory could not be read due to corrupt data." Its stated impact is "The file or directory is unavailable." Applications that touch the damaged data receive an I/O error (EIO).

The status block that goes with the message reads: "One or more devices has experienced an error and no valid replicas are available. Some filesystem data is corrupt, and applications may have been affected." The suggested action line reads "Destroy the pool and restore from backup." That line is the worst case. The same page then separates three situations:

  • Damage inside plain file data: "If the corruption is within the plain data, the file should be removable."
  • Damage in a file's metadata: "If the corruption is in the file metadata, then the file cannot be removed, though it can be moved to an alternate location."
  • Damage in pool-wide metadata: the page says this can result in "entire datasets being unavailable", and that the only option is then to destroy the pool and re-create the datasets from backup.

The OpenZFS manual explains why redundancy did not help. In zpoolconcepts(7), a damaged block is reconstructed from "raidz parity or a mirrored copy" when one exists. "If a block is unable to be reconstructed (e.g. due to 3 disks being damaged in a raidz2 group)", checksum errors are reported for all disks on which the block is stored. The same manual warns that in a non-redundant configuration "A single case of bit corruption can render some or all of your data unavailable."

zpool status -v prints, in the v2.3 manual's words, "a complete list of all data errors since the last complete pool scrub". If the head_errlog feature is enabled and files containing errors have been removed, their names are not reported in later runs.

Likely causes

Cause What you see How to confirm
The pool has no redundancy (a single disk or a stripe) One disk or several disks listed with no mirror or raidz line above them The config: section of zpool status shows plain disks directly under the pool name
Every copy of a block is damaged Non-zero CKSUM on more than one device of a mirror, or on more disks than the parity can cover zpool status -v shows CKSUM counts on several members
Redundancy was already lost when the block was read Pool state DEGRADED or a member UNAVAIL, FAULTED or REMOVED The state: and NAME STATE lines
Failing hardware under ZFS (disk, cable, controller, memory) Rising READ, WRITE or CKSUM counts, kernel I/O messages SMART output for each member and the system log
An old error that has not been through a complete scrub A path listed that was already fixed or removed The scan: line shows when the last scrub finished

Prove the cause before changing anything

These checks only read. Run them as root.

1. Find which pool is affected. The v2.3 manual says -x displays "status for pools that are exhibiting errors or are otherwise unavailable":

zpool status -x

A good result is a message that all pools are healthy. A bad result is a pool with a status: line like the one quoted above.

2. List the damaged files. The -v option adds the path list. Replace pool1 with your pool name:

zpool status -v pool1

Read the config: section for the layout and the READ, WRITE and CKSUM columns, and read the paths under the errors: line. The OpenZFS page shows paths such as /export/example/foo.

3. Check the disks under the pool. Run smartctl -H and smartctl -A on each member. For how to read a failing verdict, see smartctl "SMART overall-health self-assessment test result: FAILED!": what the verdict means and what to do first. Also look in the system log for I/O errors on the same devices. This step is our own advice; the OpenZFS page for ZFS-8000-8A does not list hardware checks.

4. Check that a backup of each listed file exists and is readable. The OpenZFS page says the data "should be restored from a backup source". If no good copy exists, stop here and treat the listed files as lost until one is found.

Fix

The fix has two parts: put good copies of the listed files back, then make ZFS prove the pool is clean. If the cause was failing hardware, replace that hardware too; the steps are in zpool status "One or more devices has experienced an unrecoverable error" (ZFS-8000-9P): clear the counts or replace the disk.

Protect what is still good

Copy the files that are not on the list, and any recent backup, to separate storage before you change the pool. The OpenZFS page says the damaged data cannot be repaired, so nothing below makes the remaining data safer than a copy on other disks does.

Move each damaged file aside and restore it

OpenZFS says a file with plain-data damage "should be removable" and a file with damaged metadata can be moved but not removed. Moving rather than deleting keeps the original path free for the restored copy and keeps the damaged file for later comparison. That choice is our own advice.

First save the current state:

zpool status -v pool1 > zpool-status-before.txt

Disruptive step: the next command renames a damaged file in the live file system, so applications that expect that path will no longer find it until a good copy is restored under the same name. The restore that follows writes a file at the original path.

Rename the file (use a path from the errors: list):

mv /export/example/foo /export/example/foo.damaged-2026-12-02

Then restore the good copy to /export/example/foo from your backup tool.

To undo it: if a restored copy is already at /export/example/foo, move it aside first. Then put the damaged file back under its own name, and check it:

mv /export/example/foo.damaged-2026-12-02 /export/example/foo
ls -l /export/example/foo

If the mv is refused or fails with an I/O error, stop. The OpenZFS page says damage in pool-wide metadata leaves one option, to destroy the pool and re-create the datasets from backup. The page gives no way to undo destroying a pool, so no command for it is given. Prove first that the backup restores onto separate storage.

Remove the damaged copy

OpenZFS says "In either case, the data should be restored from a backup source", and that plain-data damage leaves the file removable. Our own reading: a renamed damaged file is still in the pool, so a scrub should list it again until it is gone. Do this only after the restored copy opens and matches your backup tool's checksum or size.

First save the current state: record the checksum of the restored file and keep the backup copy.

Risk: the next command deletes the damaged file from the pool. OpenZFS's page gives no way to undo it, and the damaged data was the only copy in the pool. If the page's metadata case applies, the file cannot be removed, only moved, and then it stays where you put it.

Remove it (use the renamed path):

rm /export/example/foo.damaged-2026-12-02

To undo it: the page gives no way to undo it. If the restored copy is wrong, restore again from the backup, which you kept.

Scrub, then read the list again

A scrub makes ZFS read all data in the pool and verify the checksums. The v2.3 manual says a scrub "examines all data in the specified pools to verify that it checksums correctly" and that for replicated devices ZFS "automatically repairs any damage discovered".

First save the current state:

zpool status -v pool1 > zpool-status-before-scrub.txt

Risk: the next command starts a scrub, which reads every block in the pool and slows other work on a pool that is already reporting damage.

Start the scrub:

zpool scrub pool1

To back out: stop the scrub, then check the status. The manual says -s means "Stop scrubbing."

zpool scrub -s pool1
zpool status pool1

Example (illustrative): nas01 has a pool pool1 made of one disk, sda. zpool status -x names pool1, and zpool status -v pool1 shows sda with CKSUM 2 and one path under errors:, /export/example/foo. Because the layout has no mirror or raidz line, there was no second copy to repair from. The engineer saves the status, renames the file, restores it from last night's backup, checks it, removes the renamed copy, runs zpool scrub pool1, and reads zpool status -v pool1 when the scan line says the scrub has finished. The counts and the list are compared with zpool-status-before.txt. Two checksum errors do not have to equal two files; the list is the record.

Confirm the fix

  1. zpool status -v pool1 shows a finished scrub in the scan: line and no paths under errors:, once the damaged copy has been removed. Per the v2.3 manual, the list covers errors "since the last complete pool scrub", so the scrub must have completed. A damaged file that could only be moved, not removed, stays listed.
  2. The restored files open in their applications and match the checksum or size recorded by your backup tool.
  3. zpool status -x reports that all pools are healthy, or lists only conditions you have a plan for, such as non-zero device counts.

What to watch afterwards

  • Device READ, WRITE and CKSUM counts after the next scrub. A count that rises again points at hardware, not the old damage.
  • Scrub results on a regular schedule. The v2.3 scrub manual describes systemd timer units for weekly and monthly scrubs on systemd machines.
  • Backups of this data. A pool without redundancy has no way to repair itself; see Finding a bad backup before the day you need it for how to test that the copy you are restoring from is sound.

Risks and limits

  • These commands have not been run or lab-tested.
  • The OpenZFS message page was last updated on 26 March 2026 and shows no version, and the exact zpool status wording differs between releases. Match your own output to the page rather than expecting identical lines.
  • Whether a file can be renamed or moved depends on what is damaged; the page gives the cases but not a command.
  • A scrub reads the whole pool and cannot repair data that has no second copy.
  • Restoring from backup is only as good as the backup. Do not overwrite the damaged file until the backup copy has been read successfully.

Sources

  • Message ID: ZFS-8000-8A — OpenZFS documentation, last updated 26 March 2026, accessed 2 December 2026
  • zpool-status.8 — OpenZFS documentation, manual page version v2.3, dated February 14, 2024, accessed 2 December 2026
  • zpool-scrub.8 — OpenZFS documentation, manual page version v2.3, dated November 18, 2024, accessed 2 December 2026
  • zpoolconcepts.7 — OpenZFS documentation, manual page version v2.3, dated April 7, 2023, accessed 2 December 2026