TECHNOLOGY

Equal ZFS plaintext does not guarantee raw incremental lineage

In this article
THE QUICK TAKE

Choose a consistent raw or non-raw replication contract, preserving the actual base history rather than relying on matching snapshot names or plaintext.

Equal contents can have different replication history

An encrypted ZFS dataset is replicated without raw mode and later compared successfully at the file-content level. A subsequent raw incremental fails with an IV-set mismatch. The earlier comparison did not establish the cryptographic lineage required by the later stream.

The receive manual explains that equivalent decrypted data can be re-encrypted with a different initialization-vector set. Raw incremental compatibility therefore depends on more than matching snapshot names or application checksums.

Understand what raw mode preserves

The send manual describes raw encrypted sends as transmitting data as stored on disk, allowing backup without loaded decryption keys. The received dataset retains the source encryption keys, subject to the documented property behavior.

A non-raw send of encrypted data instead sends decrypted contents and can re-encrypt them at the destination. That flexibility changes the cryptographic representation. It should be an explicit replication choice rather than an accidental fallback hidden behind a successful transfer status.

Preserve the base’s IV-set lineage

For a raw incremental, the receiver checks that the source and destination base snapshots use the same IV set. A non-raw receive can produce a new snapshot whose plaintext matches while its IV set differs. A later raw incremental based on that snapshot can then fail.

Record the actual mode of the initial and subsequent transfers with snapshot ancestry. A generic encrypted-backup label loses the distinction. Neither matching dataset properties nor a file-level hash proves that the required raw base relationship survived.

Review the repair path before rollback

The receive documentation describes returning to the most recent raw-received base and sending a raw incremental from there, or establishing a new full raw stream. These are different operational changes with different retention and capacity implications.

Do not roll back a receiver merely to clear an error without reviewing newer retained points and destination-local work. A new full transfer into an appropriate new dataset can preserve evidence, but it still needs its own capacity and encryption-access validation. No live rollback is performed by this review.

Acceptance for encrypted continuation

Accept the replication chain when transfer modes, base identity and successful supported receive are documented. Separately establish that authorized recovery can obtain the required keys and restore the intended checkpoint. A backup host not possessing keys can store a useful raw copy without itself being able to validate decrypted application contents.

Checksum scope explains what content equality actually establishes. Snapshot consistency supplies the additional application-generation boundary.

Keep security and recoverability distinct

Raw replication does not make an untrusted receiver an independent verifier of plaintext correctness, and non-raw replication is not inherently an invalid choice. The failure arises when the lineage assumptions of the chosen modes are mixed. Preserve a consistent contract and the actual history so a future incremental is not qualified solely from data equality that cannot prove its cryptographic base.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles