Why Nostr? What is Njump?
2025-02-20 05:56:20
in reply to

LisPi on Nostr: > good to know... by 'manually stacking them' do you mean like, manually getting ...

> good to know... by 'manually stacking them' do you mean like, manually getting checksum between certain tasks by just typing it in?

No, I mean manually setting up dm-integrity on the drives and then passing those dm-integrity mapped devices to LVM for doing the rest of the operations one intends.

Integrity is distinct from encryption (except authenticated encryption) too, encryption's purpose is privacy, whereas the checksumming is to detect data corruption from various things such as failing drives or cables.

2^-32 chance of collision (undetectable corruption) might sound very small but past a certain amount of data written/read it becomes basically unavoidable.

Corruption is a *lot* more common than undetectable corruption so even just crc32 is still significantly better than nothing at all.

As for LUKS/dm-crypt and its integration with dm-integrity (which provides authenticated encryption), I'd say it depends on your setup. There are issues with trim/discard with said integration, so it might not be a good idea to use it with SSDs. Foregoing the integration (using one on top of the other manually without informing the system of the link) means that a lot of more efficient computation paths are ignored and performance suffers a bit, but with SSDs that can probably be made-up for in other ways.

(For fun, try stacking 4 FUSE systems on top of eachother. Performance will take a hit each time. Same concept, but slightly less dramatic here because the in-kernel penalty is lower.)
Author Public Key
npub1326y4p8mw4l750yc8e52n0xguvcl5j0dn88ul5r2gjva2sh2ay7qjqgzqx