-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"cannot receive: invalid record type" when receiving raw incremental stream with encrypted filesystem and redundant snapshots #11081
Comments
Just hit this today, took me a while to figure out it was a issue and not something I was doing wrong. I've been looking through the man pages to see if ignoring existing snapshots is expected behavior or not. I guess I took this for granted because I based my replication system around the assumption that ZFS ignored existing snapshots on the receiving side. With this, it will break an entire recursive replication for one snapshot already existing. Particularly this impacts resuming a mirror that had some of its snapshots transferred but not all of them. Its outside my skill level to figure out, but can someone confirm is this a "bug" or is it a unavoidable side effect of sending with --raw? Can it be fixed somehow or is this just a limitation like the copies=3 is a limitation of encryption? (thanks for the hard work, I cannot live with ZFS) |
I was just hit by this issue without using raw send/recv (it was a plain incremental send/recv). I am using ZFS 2.0.5 and this is the first time I encountered the issue; before I was running ZFS 0.8.6 on both source and destination without problem. Even after removing the snapshot causing I don't know if this is a coincidence of if the upgrade to ZFS 2.0.5 is related. I'll keep the machine under monitor and report back any finding. |
I was again hit by this issue. To solve it I had, again, to rollback to the latest snapshot (this time I tried with "zfs recv -F" and it worked). Anyone having some idea on what is going on? EDIT: Checking the code, the only relevant reference I can find is in But I don't know what was causing the unknown/unexpected record in the first place... |
There is similar error in the function |
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions. |
Hi all, snap zbackupc2/carbonics@zfs-auto-snap_weekly-2023-03-13-1546 already exists; ignoring Thanks again for all your hard work on ZFS! |
I also notice that if, during the send, I get the message that |
System information
Describe the problem you're observing
ZFS fails to receive incremental stream with error "cannot receive: invalid record type", if filesystem contains an encrypted child and some snapshots in incremental stream are already on receiving filesystem.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
The full log of the reproduction case is
Additional notes
If you rollback the receiving filesystem, like
zfs rollback -r test2@a
andzfs rollback -r test2/fs1@a
, the incremental receive will succeed.With
-F
, the receiving filesystem will delete snapshots missing from the stream, even though it fails to receive.The text was updated successfully, but these errors were encountered: