From nobody Tue Nov 08 00:43:30 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 4N5q8j3D0Wz4gs5X for ; Tue, 8 Nov 2022 00:43:33 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5q8h2S1Gz3Mrt for ; Tue, 8 Nov 2022 00:43:32 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: by mail-qk1-x72c.google.com with SMTP id g10so8273307qkl.6 for ; Mon, 07 Nov 2022 16:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=8Y+19Ouy3hZ3lf71pnaJrO21GromMGXmxfzAYd64b9s=; b=duRcSzQ9ufrLOPwh/eD31cdajjbNqAHxKkAhcxQIgwinChKzS+EHe+trq9tYdhtdXV UeTbLcg+sYRRDf9M2NNZY8j3eTPzHHaJ1mFRct3TPNfuJLxf46riL2vS7gTeeBPzJf/S 5BbDMD0d18j6XnU58Sxr55HSpZ4CbjXgE/zCuJoMqS97XsG6ZSK4u2T49LCdhW7f91Ig VQq9IbopxSygSR1NHCPQtt1eQpQCh7RPoibcxlpAhYhxE5d53en9IXmu/Nvbg9Zzm2fg lQmIT+Ys9A1NXfC0HgbFJ26O2ulI68ZzIKJsivtERx5vyW0ilfYDFquT9gHtRngIsOfo osdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8Y+19Ouy3hZ3lf71pnaJrO21GromMGXmxfzAYd64b9s=; b=3cK8nwpVhgorEvAKEkGlOCnOxvRUBgqEoaMPq0ThSFeqFOaEP+5MRVbGebfI9H8ih0 t5TZ8YtmstZHQ1Sl076H3SPfI3vxDxbPJZBEaxo11UqNhOZo1+0JddwDlsdr+YJKR+YB 0xHznwjzjnp3xtHBPoOt4OPDUfVDncbFins00UF98n7LlBRvAaoGDwoBuxlLt9sB8xeh UNA+zJWWAWhz8xN2c9FVb1Zhp4yig+0ka4s1PgtuYwOgmpuqxQmcQZ8rftpNuMZGD5C+ 5pdUE9lbfQAvTE4JWiHS5xPzsvFjnXW8Hs/rKx7zUnZWYfP8/8Ptu98Ldxd3iqGgg3Cp upog== X-Gm-Message-State: ACrzQf0I5hxo/LAeb5jI/eK081e+bP8vqJCSQTQaUFnX2DEsJYSNe6Dl pUOg8HfdR3oTtEGfLobmzf4eM5dH9so= X-Google-Smtp-Source: AMsMyM7akxq0AyV8luGRGL/jxCsVObFZ0wIRlm3dfd1YdbPSuSLE8NCvjNzItd1ozUh16DsW0nHc8Q== X-Received: by 2002:a05:620a:1667:b0:6fa:1b5e:b9b4 with SMTP id d7-20020a05620a166700b006fa1b5eb9b4mr36089940qko.141.1667868211440; Mon, 07 Nov 2022 16:43:31 -0800 (PST) Received: from [192.168.1.66] (104-55-12-234.lightspeed.knvltn.sbcglobal.net. [104.55.12.234]) by smtp.gmail.com with ESMTPSA id az8-20020a05620a170800b006bb87c4833asm7946300qkb.109.2022.11.07.16.43.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 16:43:31 -0800 (PST) Message-ID: <62348dc1-7f9a-f8ae-db77-f2f5d8a709d8@FreeBSD.org> Date: Mon, 7 Nov 2022 19:43:30 -0500 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: vfs.zfs.vol.recursive hang makes it impossible to mount zvol Content-Language: en-US To: Dan The Man , freebsd-current@FreeBSD.org References: From: Alexander Motin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4N5q8h2S1Gz3Mrt X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=duRcSzQ9; dmarc=none; spf=pass (mx1.freebsd.org: domain of mavbsd@gmail.com designates 2607:f8b0:4864:20::72c as permitted sender) smtp.mailfrom=mavbsd@gmail.com X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; FORGED_SENDER(0.30)[mav@FreeBSD.org,mavbsd@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mav@FreeBSD.org,mavbsd@gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72c:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N 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