Date: Mon, 7 Nov 2022 19:43:30 -0500 From: Alexander Motin <mav@FreeBSD.org> To: Dan The Man <dan@sunsaturn.com>, freebsd-current@FreeBSD.org Subject: Re: vfs.zfs.vol.recursive hang makes it impossible to mount zvol Message-ID: <62348dc1-7f9a-f8ae-db77-f2f5d8a709d8@FreeBSD.org> In-Reply-To: <da17977d-b37e-aa79-372f-326b2698f418@sunsaturn.com> References: <da17977d-b37e-aa79-372f-326b2698f418@sunsaturn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07.11.2022 18:53, Dan The Man wrote: > router:~ # sysctl vfs.zfs.vol.recursive=1 > vfs.zfs.vol.recursive: 0 -> 1 > router:~ # zpool import > pool: testing > id: 8013833172609421701 > state: ONLINE > action: The pool can be imported using its name or numeric identifier. > config: > > testing ONLINE > zvol/zroot/asterisk2p3 ONLINE > router:~ # zpool import -fR /mnt testing > > This hangs forever.... > The only way to import that pool from the zvol that I know of..... Mounting ZFS from ZVOLs is blocked for a reason. It causes deadlocks due to lock recursion. I don't know what you are trying to achieve, but as alternatives, the ZVOL can be passed inside VM, it can be shared via iSCSI (even inside the host itself), etc. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62348dc1-7f9a-f8ae-db77-f2f5d8a709d8>