From nobody Mon Nov 14 21:07:17 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NB2251Vtpz4dMsH for ; Mon, 14 Nov 2022 21:07:25 +0000 (UTC) (envelope-from dan@sunsaturn.com) Received: from sunsaturn.com (sunsaturn.com [IPv6:2604:4300:a:196::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "sunsaturn.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NB22433mNz3hT9; Mon, 14 Nov 2022 21:07:24 +0000 (UTC) (envelope-from dan@sunsaturn.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sunsaturn.com header.s=default header.b=gfRr1UtF; spf=pass (mx1.freebsd.org: domain of dan@sunsaturn.com designates 2604:4300:a:196::3 as permitted sender) smtp.mailfrom=dan@sunsaturn.com; dmarc=none Received: by sunsaturn.com (Postfix, from userid 1001) id 9CF6293ED; Mon, 14 Nov 2022 15:07:17 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sunsaturn.com; s=default; t=1668460037; bh=Rh8jyXuH+CWYMhNdXl1JcCeZirWG8Ivplja9AImsJiw=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=gfRr1UtF/6gn7Mb/+rkaiMr+4NTNBVHROUtCCcvFwrNpo2zHiuEF1FR4yd6pZ9yqp cVB1nWO4b5q3ng25V0GSIoKDx6m2GVpyEJBrZd47rTX3pFE1T7O5P5SyF1OOpE/KZz /ERuGpj0a/nfWVEvErUDe4+FwZKDxLcHnabFxXfk= Received: from localhost (localhost [127.0.0.1]) by sunsaturn.com (Postfix) with ESMTP id 9AA2494F0; Mon, 14 Nov 2022 15:07:17 -0600 (CST) Date: Mon, 14 Nov 2022 15:07:17 -0600 (CST) From: Dan The Man To: Alexander Motin cc: freebsd-current@FreeBSD.org Subject: Re: vfs.zfs.vol.recursive hang makes it impossible to mount zvol In-Reply-To: <62348dc1-7f9a-f8ae-db77-f2f5d8a709d8@FreeBSD.org> Message-ID: <8c9459bc-a15d-3b73-9ad5-1227372b7e14@sunsaturn.com> References: <62348dc1-7f9a-f8ae-db77-f2f5d8a709d8@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1969398039-1361763688-1668460037=:67313" X-Spamd-Result: default: False [-0.50 / 15.00]; CTYPE_MIXED_BOGUS(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2604:4300:a:196::3]; R_DKIM_ALLOW(-0.20)[sunsaturn.com:s=default]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current@FreeBSD.org]; MIME_TRACE(0.00)[0:+,1:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:33387, ipnet:2604:4300::/32, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[dan]; DKIM_TRACE(0.00)[sunsaturn.com:+]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[sunsaturn.com: no valid DMARC record]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4NB22433mNz3hT9 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N 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--