Skip to content
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

zfs send -R | zfs recv can fail in the middle due to a snapshot being taken #7024

Open
rincebrain opened this issue Jan 9, 2018 · 3 comments
Labels
Bot: Not Stale Override for the stale bot Component: Send/Recv "zfs send/recv" feature Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@rincebrain
Copy link
Contributor

System information

Type Version/Name
Distribution Name Debian
Distribution Version 9.3
Linux Kernel 4.9.0-4-amd64
Architecture amd64
ZFS Version 0.7.3-3
SPL Version 0.7.3-1

Describe the problem you're observing + how to reproduce the problem

When doing a long-running zfs send -R foo/bar/baz@ten | zfs recv -ds newfoo, an automated utility helpfully took a recursive snapshot on newfoo, and zfs recv abruptly died with cannot receive incremental stream: kernel modules must be upgraded to receive this stream. with newfoo/bar/baz having completed snapshots one, ..., seven and throwing that error on attempting to resume.

I would have expected the in-progress receiving dataset(s) to have remained immutable until the receives were completed, but apparently this isn't the case.

Destroying the errant snapshot on newfoo/bar/baz allowed the zfs send to proceed like nothing ever happened.

Since there's already a number of bugs suggesting that this message should be broken out and detailed further (#6547, #6574), this bug is mostly about the fact that nothing is stopping you from shooting yourself in the foot and not being able to discover why without making dramatic leaps or (presumably) reading zfs/dbgmsg.

@stale
Copy link

stale bot commented Aug 25, 2020

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.

@joshenders
Copy link

Is there a way to reopen this? I'm still experiencing this issue on 2.2.2-1~exp1 on Debian 12 6.1.0-15-amd6

@rincebrain rincebrain reopened this Dec 26, 2023
@stale stale bot removed the Status: Stale No recent activity for issue label Dec 26, 2023
@rincebrain rincebrain added Type: Defect Incorrect behavior (e.g. crash, hang) Component: Send/Recv "zfs send/recv" feature Bot: Not Stale Override for the stale bot labels Dec 26, 2023
@rincebrain
Copy link
Contributor Author

I think it now outputs a more useful message, something like incremental source differing, but not by much, if I recall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot: Not Stale Override for the stale bot Component: Send/Recv "zfs send/recv" feature Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

2 participants