-
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
self-hosting hang/deadlock (zpool on zvol) #4694
Comments
is is reproducible
|
@nigoroll actually on Solaris-ish systems this isn't 100% safe either and may deadlock. It just happens to be much much more likely with ZoL due to a greater degree of concurrency allowed in the Linux block layer. But your definitely right this can deadlock and should be resolved, patches welcome. :) |
@behlendorf yes, you are right, and I've experienced a similar thing shortly after logging this issue: https://www.illumos.org/issues/6994 |
disagree, the deadlocks are below the volume interface (in ZFS module), not above it. So changing the wiring above the volume interface makes no difference. |
Yeah, I've had it hang via a VirtualBox and iSCSI (physical disk->ZFS->ZVolume->iSCSI->Network->Physical Machine->VirtualBox VM->ZFS on VM disks). |
@kpande no it's not a regression, this has never been 100% safe. Over the years we'd addressed some of the possible deadlocks bet we never got all of them. |
@kpande nothing comes to mind. But if you wanted to add such as thing all you'd need to do is update |
@behlendorf @kpande's description of his problem in IRC is the ZFS stacking problem where a zvol is the backing device for another device that is the vdev of another pool. @nigoroll Would you try reproducing with this patch applied and the parallel open explicitly disabled? Either we disabled parallel vdev open and things deadlocked anyway, or our detection code for disabling it failed to realize the device is a zvol due to the symlink. It is somewhat hard to read the stack traces without kernel debug symbols, but my guess is that the problem is one of those two. If the symlink caused the problem, then it should be an easy fix. |
Closing as duplicate of #3484. |
On solaris-ish systems, zfs is capabable of self hosting / creating zpools within other zpools
For me, this leads to a hang/deadlock:
debian 8.4
Linux haggis 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
zfs-dkms 0.6.5.7-8-jessie
Note that this case is different from #2469
The text was updated successfully, but these errors were encountered: