Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2022 15:07:17 -0600 (CST)
From:      Dan The Man <dan@sunsaturn.com>
To:        Alexander Motin <mav@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: vfs.zfs.vol.recursive hang makes it impossible to mount zvol
Message-ID:  <8c9459bc-a15d-3b73-9ad5-1227372b7e14@sunsaturn.com>
In-Reply-To: <62348dc1-7f9a-f8ae-db77-f2f5d8a709d8@FreeBSD.org>
References:  <da17977d-b37e-aa79-372f-326b2698f418@sunsaturn.com> <62348dc1-7f9a-f8ae-db77-f2f5d8a709d8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1969398039-1361763688-1668460037=:67313
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT



https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267769

I'm just going to submit bug this way, I do like fact I can mount ZFS 
guests now, and I love being able to pass through multiple disks through 
with one line to bhyve such as :
-s 4:0,virtio-scsi,/dev/cam/ctl1.0

very handy, and very organized especially if someone wanted to pass 10 
devices through to a guest with a 1 liner to bhyve.

I am not sure what is happening after resume, would be disheartening to 
have to go back to virtio-blk :( Think virtio-blk being phased out to 
virtio-scsi from what I have read.


Dan.

--
Dan The Man
CEO & Founder
Websites, Domains and Everything else
http://www.SunSaturn.com/aboutus.php
Email: Dan@SunSaturn.com
PGP Key: https://SunSaturn.com/pgp.txt
A1A7 6E84 FB0B 8994 C3B5  A1BA FF6F 4997 7311 C386

On Mon, 7 Nov 2022, Alexander Motin wrote:

> 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
>
--1969398039-1361763688-1668460037=:67313--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8c9459bc-a15d-3b73-9ad5-1227372b7e14>