Delete a Corrupt File

zpool status -v shows a file that has “Permanent errors”. It’s not an important file and I deleted it via file explorer, but TrueNAS is acting like it’s still there. full errors reads like this:

errors: Permanent errors have been detected on the following files:
pool0/pool0 Master/shares@auto-2024-08-09_00:00:/sharename/foldername/filename

I’ve done several scrubs and it’s still there. also done zpool clear a few times too. What’s also interesting is if I leave the NAS alone for a few hours and run zpool status -v the error reads:

errors: Permanent errors have been detected on the following files:
<0xaa79>;<0x127>

Then if a do another scrub, it goes back to reading as:

errors: Permanent errors have been detected on the following files:
pool0/pool0 Master/shares@auto-2024-08-09_00:00:/sharename/foldername/filename

This is metadata.

This is a snapshot.

Removing the snapshot should do the trick.

Yeah I just removed the snapshot, went back to showing meta data.

I would try a zpool scrub -e before continuing.

That command doesn’t work for me. I can do -s -p or -w

1 Like

Oh, that’s unexpected. Run a normal scrub then.

Yeah I did. Looks like after each scrub it increments up in date on that snapshot. I just made a manual snapshot and deleted all snapshots leading up to, but excluding yesterday 2024-08-15, but I suspect yesterday’s will have to go too.

yeah deleting up to yesterday’s snapshots finally cleared this thing up after a zpool clear command.

2 Likes

Yeah. The file is retained by all snapshots that it was present for.

You need to remove them all for it to actually be removed

And this is why at least 1 disk of redundancy is a good thing. Even RaidZ1.

1 Like