Open eharris opened 4 years ago
Do you have zvols in the pool?
Apart from that, please see https://github.com/openzfs/zfs/issues/2878
No there are no zvols in the pool.
try zfs unmount -a
? (for all) maybe due to the recursive nature of /raid mountpoint existing as raid2, a child, but also the parent of the siblings,(idk how to phrase that right) something weird happened.
As originally stated, all of the mounts went away after the first export attempt (before even trying export -f
), so what more would be done attempting to unmount again when nothing is mounted?
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.
I just ran into this with zfs-2.1.9-1 on current mint 21.
Imported a pool on removeable media with -N
as I only needed contents from a filesystem with mountpoint=legacy
, then tried to mount using zfs mount filesystem mountpoint
(which failed, ZFS should really transmute these mental typos to mount -t zfs filesystem mountpoint
), then mounted manually (using the command the magic requested in the brackets would yield), cd'ed into a subdirectory of that mountpoint and looked for something.
Then tried zpool export
- without leaving the directory - and got the 'pool busy' error, understandable from the shell having a pwd inside a mounted filesystem, so I did cd ; zpool export ...
and still got the error.
Though the filesystem was cleanly unmounted by that, nevertheless the pool refused to export, even with -f. Nothing mounted, a scrub ran without any errors...
Highly annoying, as I have to reboot to get rid of the pool because simply pulling the drive will surely lead to ZFS blocking on some lock at some point.
Reopening this. If you have a way to consistently reproduce this that would be very helpful.
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.
Bad bot.
System information
Describe the problem you're observing
After importing the pool as read-only using
zpool import -o readonly=on raid2tank
, I am subsequently unable to export/unmount the pool,zpool export raid2tank
fails withcannot export 'raid2tank': pool is busy
. /proc/mounts shows that all the mounts are gone, so I can only assume that something in the zfs subsystem itself is holding it open, which as far as I know should be impossible since it is readonly.Attempts to force exporting using
zpool export -f raid2tank
also fails with the same error. I also tried stopping zed, and export still fails.Describe how to reproduce the problem
Don't know yet if it's reproducible. Just trying to gather anything useful before rebooting to try to get it back into read-write mode.
Include any warning/errors/backtraces from the system logs
Nothing pertinent in system logs.