How to repair corruption

ninjai

Explorer
Joined
Apr 6, 2015
Messages
98
Hi, I have a backup ZFS disk that has experienced corruption. Not a huge deal, I still have another copy. How do I recover this?

Code:
@freenas ~]$ sudo zpool status -v
Password:
  pool: FreeNAS-Backup
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://illumos.org/msg/ZFS-8000-8A
  scan: scrub repaired 0 in 0 days 19:19:35 with 0 errors on Mon Nov 25 16:08:53 2019
config:

        NAME        STATE     READ WRITE CKSUM
        FreeNAS-Backup  ONLINE       0     0     0
          da1p2     ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:

        <metadata>:<0x0>
        <metadata>:<0x1b>
        /mnt/FreeNAS-Backup/



I was reading about this here:

And I'm not sure what to do about the metadata things. I only use this disk to replicate snapshots to. Also the /mnt/FreeNAS-Backup is the mountpoint for the entire ZFS pool. to me that means the whole pool is corrupted or something, however I can still browse the files so I'm not really too sure in its meaning
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You will need to get all of the data you can off of the disk and rebuild the pool (after considering the SMART data to see if you want to continue using that specific disk any longer).

You should also check the integrity of any files you do get off the drive. You may have been lucky and only lost pointers to things that aren't parts of the actual file data.
 
Top