Forcing full file read in ZFS even when checksum error encountered

Joe Peterson joe at skyrush.com
Mon Feb 4 16:27:07 UTC 2008


I have a ZFS pool of one partition (i.e. no mirror/RAID) with a reported
checksum error (on one file).  Scrubs find it, and when I try to read the
file, I get an I/O error ("bad address" on fbsd).

When I try to copy the file, I get only 655360 bytes copied, and then the copy
stops.  I assume this is because the next block is where the error is.
However, I'd like to do some forensics on this, especially since I am not
convinced the disk is bad.

Is there a way to force ZFS to give me the whole file so I can compare it to
my backup?  Is there a way to get ZFS to give more specifics on the checksum
issue (i.e. which block, where in file, etc.)?

						Thanks, Joe


More information about the freebsd-fs mailing list