-
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
zfs destroy fails to destroy snapshots #1064
Comments
Interesting: uname gives this
and the reproducer gives this:
|
Duplicate of issue #1210 ? |
It sure looks like it. Between @nedbass's fix and the async destroy changes we should now reliably get an error. Can someone please verify this is true for master. |
with 7973e46
everything looks correct now...... |
@maxximino Thanks for verifying this, in fact everything looks good. I'm closing this issue as a duplicate of #1210 |
…1064) Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.29.5 to 0.29.6. - [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md) - [Commits](https://github.com/GuillaumeGomez/sysinfo/commits) --- updated-dependencies: - dependency-name: sysinfo dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
At least on my 3.5.x kernels, 'zfs destroy' fails to destroy a snapshot the first time it is executed, if that snapshot has been visited recently. On my 3.2.x kernels this does not happen:
I'm using legacy mount points. Please find a reproducer below:
Result:
/proc/mounts that the snapshot mount is still there:
To destroy the snapshot now, it must be manually unmounted after which 'zfs destroy' works as expected.
However, if some time is spent before the first destroy but after the first cd (into the snapshot dir), the first destroy manages to get rid of the mount (not shown in below log but it does) but still fails to finish the job; the second destroy truly destroys the snapshot:
Result:
I also checked with 'lsof' that my system doesn't have open file handles to the snapshot dir after I cd out of the snapshot dir in the above tests.
This bug might be related to #1007, however the author of #1007 says they are not visiting the snapshot directory, and doesn't seem to have an easy reproducer.
The text was updated successfully, but these errors were encountered: