Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cannot destroy dataset: dataset is busy #1810
Comments
|
It's a bit of a shot in the dark, but try this:
This searches for other instances of the mount in other namespaces. I've had this with LXC and since you have such a new kernel I assume you're running an OS that might use it as well. |
|
We had something similar to this, smal chance, check zfs holds $snapshotname to see if it has any holds, and if so, zfs release to remove the hold |
|
@DeHackEd: Oh, man, thank you! That's the issue! It's grabbed by ntpd... Yep, we use LXC as well. |
seletskiy
closed this
Oct 24, 2013
|
Hmmm, it's quite interesting. For whatever reason after umounting any zfs filesystem it still presents in /proc/<ntp_pid>/mounts:
I doesn't make any sense. |
seletskiy
reopened this
Oct 24, 2013
|
There's a linux feature called mount namespaces. You can make one by running It's a sandboxing technique. LXC uses this but it's not strictly an LXC feature. Unfortunately the ZFS tools can't tell this has happened and says it's unmounted because /etc/mtab (and even /proc/mounts) says all is well. I guess ntpd is doing this. It's a systemd feature so maybe that's at play as well. |
|
Further investigations revealed, that it's looks like bug in systemd. It's repeatable even on loop mount with ext4. It appears when running ntpd because of So, I'm closing the issue, I've think it's not ZFS bug. |
seletskiy
closed this
Oct 25, 2013
|
@DeHackEd Thanks for assistance. I've filed a bug if you're intersted: https://bugs.freedesktop.org/show_bug.cgi?id=70856 |
|
Just encounter this issue again, but now there is no proc that holds mount.
|
seletskiy
reopened this
Nov 5, 2013
|
@seletskiy This may be a duplicate of #1792. A fix for this, 7ec0928, was merged in to master a few days ago, could you try the latest code. |
|
@seletskiy Can you still reproduce this in master? We believe it was fixed, unless I hear otherwise I'll close this one out in a few days. |
|
@behlendorf: Looks like issue is fixed. Thanks a lot! |
seletskiy
closed this
Dec 9, 2013
RLovelett
commented
Apr 22, 2014
|
@behlendorf is Or would I have to build from source to get this fix? |
|
@RLovelett, the Trusty daily builds are tracking master and are current. The packages in ppa:zfs-native/daily for Precise are stale, but they do have this particular fix. |
This was referenced Mar 6, 2015
WyseNynja
commented
Sep 6, 2017
|
Whatever fix was done here isn't enough for my case. I ran Steps to reproduce:
Let me know if I should open this task for the docker team instead. For now I'll disable ntp. |
seletskiy commentedOct 24, 2013
I've see similar issues, but all of them were closed.
I'm experiencing such kind of problem right now:
It's quite annoying, because of I need to constantly reboot host to get it to work.
I can provide any debug information needed.