openzfsonosx / zfs

OpenZFS on OS X

Home Page:https://openzfsonosx.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zfs unmount -f fails

haraldrudell opened this issue · comments

When zfs cannot write to its media, the kernel cannot be recovered
Only forced power off can resolve the situation
The pool cannot be unmounted

The failing function is:
zfs unmount -f z51
Running process: '/usr/sbin/diskutil' 'unmount' 'force' '/Volumes/z51'
Unmount failed for /Volumes/z51
Fallback umount called
Running process: '/sbin/umount' '-f' '/Volumes/z51'
umount: unmount(/Volumes/z51): Resource busy
cannot unmount '/Volumes/z51': umount failed
— takes 30 seconds

There should be no situation where this command does not get rid of the pool from memory even if disk writes are unavailable

This is not because of some external factor like Catalina or dumb users
The root cause is that the zfs software is not good enough for this use case