Reading a corrupted file on ZFS

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Sat Feb 13 17:38:17 UTC 2021


On Sat, 13 Feb 2021, Stefan Esser wrote:
>
> I have a number of older 2 TB drives and use 2 of them to store
> DVB transport stream data, for later processing. They are not
> mirrored and the data format assumes that the transmission is not
> perfect. I have noticed that some of these files have been lost
> due to bad sectors, and while this would not be a problem on UFS,
> ZFS thinks I should not trust the file at all, despite 99,9999%
> of it being perfectly usable. (A fraction of the TS data is
> extracted from these files and stored as PS data on a ZFS RAID,
> where it will be safe and I never lost a file.)

If simple bad sectors is a problem for you on zfs, then try setting 
the the filesystem 'copies' property to a value higher than one before 
writing the file.  This does use more space but does not require 
additional devices.

Bob
-- 
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt


More information about the freebsd-fs mailing list