One of the cool things about btrfs on linux is that it can correct bit rot if it has redundant data because of its per-block checksumming. I can get redundant data by setting up a raid1 with two disks. However, can I also get redundant data to prevent bit rot on a single disk?
I see that btrfs has a DUP option for metadata (
-m dup) that stores two copies of the metadata on each drive. However, the documentation says that dup is not an option for data (i.e.
-d dup is not an option). Is there a good way around this? Partition a single disk into two equal parts and raid1 them together?
Alternatively, is there another simple way to get file system level error detection and correction on linux (something like an automatic parchive for file systems)?
(I'm not interested in answers suggesting that I use two drives.)
EDIT: I did find this, which is a FUSE filesystem that mounts files with error correction as normal files. That said, it's a little hack/proof of concept the someone put together in 2009 and hasn't really touched since.