-
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 umount fails to unmount in the correct order and zfs diff fails #13674
Comments
The way this is written sounds like you're mounting /parent after /parent/child, which is, because that's how UNIX mountpoints work, going to hide /parent/child from being visible for all intents and purposes. If you don't want to allow it to hide mounts like that, you can set overlay=off, but then the mount will just fail. |
That makes sense for the 2nd one. But it should still be possible to unmount them. |
Usually you pass in a reference to the mountpoint you want to remove. Since you can't "see" the mountpoint to get a pointer to it, you can't do that, and if you ask it to umount the currently visible thing at /foo/bar, there's nothing mounted there. This isn't ZFS-specific, this is a problem if you mount over any existing FS mounts. |
I was referring to:
I never use mountpoints for unmounting, so I haven't tried whether |
Sorry, are you objecting to the fact that I could see implementing a behavior change to allow it to try the former anyway even if it thinks it'll fail based on all the information it has, but the latter doesn't seem easily resolvable, as I understand how this works. I suppose that could be messy in practice, though...as mountpoint interactions tend to be. |
The issue is that after mounting It actually is possible to resolve this with
|
I just stumbled into this and got stuck (zfs 2.1.7 on Arch Linux). The umount trick by @siilike worked for me. Such that, for |
System information
Describe the problem you're observing
Firstly, there is an issue regarding mount order and
zfs umount
:When mounting a parent dataset after the child dataset
zfs umount
fails to unmount either of them properly, so they have to be unmounted manually in the correct order withumount
.Secondly, I have also seen:
but could not reproduce at this time. Likely some snapshots were mounted while running
zfs umount
.Thirdly, there is an issue regarding
zfs diff
:When all datasets are mounted using
zfs mount -a
runningzfs mount parent/child
temporarily resolves the issue.When only
parent/child
is mounted it does not help.The issue appears on a server that is concurrently receiving snapshots from several other servers using
syncoid
.The latest received snapshots are held, mounted, diffed with the held snapshots from the previous run, changed files copied, unmounted, the held snapshots from the previous run released.
The pool is encrypted.
Also present on the same system: #13598
The text was updated successfully, but these errors were encountered: