I would like to set up resilient encrypted storage with single NVMe drive for my laptop and its (encrypted) backup (with SATA housing and SSD drive).
This is what I have at the moment:
- SSD -> GPT partitions (unencrypted /boot, EFI, and LUKS) -> LVM -> BTRFS.
I started checking if LUKS has any CRC, so that it wouldn't multiply data corruption, and it seems that it has not. It will create 16 wrong bytes for a single bad bit. I'm interested to know if there's a way to setup integrity checking for LUKS or a layer bellow LUKS so it wouldn't propagate errors in case of data corruption, bad memory, possible unsafe shutdowns. In case of unrecoverable data corruption I'd recover it from backup, and I think that is quite small chance that both would get corrupted simultaneously. Any ideas are very welcome :)