-
|
when issuing zpool trim mypool and for some reason zerofs crashes (ctrl+c or any other reason), trim command hangs forever and cannot be killed. any thoughts or is this ZFS specific? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, You're experiencing a classic NBD issue where I/O operations get stuck in an uninterruptible state when the server disconnects unexpectedly. When the NBD server crashes, any pending I/O operations (like those from
You might be able to forcibly disconnect the NBD device with: nbd-client -d /dev/nbdXIf this is a concern, you may want to look at the "timeout" option of |
Beta Was this translation helpful? Give feedback.
Hi,
You're experiencing a classic NBD issue where I/O operations get stuck in an uninterruptible state when the server disconnects unexpectedly.
When the NBD server crashes, any pending I/O operations (like those from
zpool trim) end up waiting indefinitely in the kernel, which is why you can't kill the process. This happens because:You might be able to forcibly disconnect the NBD device with:
If this is a concern, you may want to look at the "timeout" option of
nbd-clienthttps://manpages.debian.org/…