3 ms·
That's what RAID-5 (and variants) are. Btrfs (and maybe ZFS?) support making certain files or volumes use parity stripes so corruption is recoverable in-place.
by xenadu02 8y ago
That's what RAID-5 (and variants) are. Btrfs (and maybe ZFS?) support making certain files or volumes use parity stripes so corruption is recoverable in-place.
Per Shannon, these things are all related. You can think of error-correcting codes as a form of replica compression: get the reliability of multiple replicas at a fraction of the size.
Like compression, there are CPU-time tradeoffs as well. Writing two replicas can happen completely in parallel (they're independent) and it imposes basically no CPU cost.
Writing an error-correcting code imposes a CPU penalty and for files that get mutated they impose write overhead (though SSDs have that anyway making it less of a concern).
I think a lot of people assume bitrot happens over time and you need backups anyway, so why take the hit on the primary for some small protection? The reasonableness of that depends on your specific use case and risk tolerance.
- FooBarWidget 8y ago> That's what RAID-5 (and variants) are. How feasible is it to setup RAID-5 on a laptop or a phone? > I think a lot of people assume bitrot happens over time and you need backups anyway, so why take the hit on the primary for some small protection? As I said: laptop and consumer device use cases. SSD storage on a Macbook is crazy expensive.
- sp332 8y agoNote that btrfs support for RAID 5/6 is still in development and not to be trusted. https://btrfs.wiki.kernel.org/index.php/Status https://btrfs.wiki.kernel.org/index.php/Status It does store checksums though, so if you run dup or "raid 1" (which is not really RAID 1), it can figure out which copy is correct and recover. Not as efficient though since you need two complete copies of the data.