From nobody Mon Nov 07 23:53:01 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 4N5p2b2chsz4gln8 for ; Mon, 7 Nov 2022 23:53:11 +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 4N5p2Y2yQgz64Mj for ; Mon, 7 Nov 2022 23:53:09 +0000 (UTC) (envelope-from dan@sunsaturn.com) Received: by sunsaturn.com (Postfix, from userid 1001) id 46612684CD; Mon, 7 Nov 2022 17:53:01 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sunsaturn.com; s=default; t=1667865181; bh=ZDE9/tCnrgmMu+z1J89mvmSsYkIhtsPlN6kbJldW/N4=; h=Date:From:To:Subject; b=WUh8W8eVUeiA0vOCwjHbGT5McQ4uUyZ8TZWawK4zkzUSxIsgZgapwGIamlEBv8iax GFD5KnwTnkrBBKRdX4c7vU1IgYbhXhQRa76waqhYFTe3ynjAJQVbSNBbbraLPJc29o a0uaiwypCvHP4mOiQEVZ4r7YJOKg3hzYew+W70G8= Received: from localhost (localhost [127.0.0.1]) by sunsaturn.com (Postfix) with ESMTP id 44336684DE for ; Mon, 7 Nov 2022 17:53:01 -0600 (CST) Date: Mon, 7 Nov 2022 17:53:01 -0600 (CST) From: Dan The Man To: freebsd-current@FreeBSD.org Subject: vfs.zfs.vol.recursive hang makes it impossible to mount zvol Message-ID: 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: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4N5p2Y2yQgz64Mj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sunsaturn.com header.s=default header.b=WUh8W8eV; dmarc=none; spf=pass (mx1.freebsd.org: domain of dan@sunsaturn.com designates 2604:4300:a:196::3 as permitted sender) smtp.mailfrom=dan@sunsaturn.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[sunsaturn.com:s=default]; R_SPF_ALLOW(-0.20)[+ip6:2604:4300:a:196::3]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-current@FreeBSD.org]; DKIM_TRACE(0.00)[sunsaturn.com:+]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[sunsaturn.com: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:33387, ipnet:2604:4300::/32, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[dan]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N router:~ # uname -a FreeBSD router.sunsaturn.com 14.0-CURRENT FreeBSD 14.0-CURRENT #1 main-n259058-105019e0d6c: Sat Nov 5 05:37:28 CDT 2022 dan@router.sunsaturn.com:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL amd64 router:~ # zfs create -V30G -o volmode=full zroot/asterisk2 (install a ZFS guest on it and call zroot testing) router:~ # gpart show /dev/zvol/zroot/asterisk2 => 40 62914480 zvol/zroot/asterisk2 GPT (30G) 40 532480 1 efi (260M) 532520 2008 - free - (1.0M) 534528 16777216 2 freebsd-swap (8.0G) 17311744 45600768 3 freebsd-zfs (22G) 62912512 2008 - free - (1.0M) router:~ # gdisk -l /dev/zvol/zroot/asterisk2 GPT fdisk (gdisk) version 1.0.9 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Disk /dev/zvol/zroot/asterisk2: 62914560 sectors, 30.0 GiB Sector size (logical): 512 bytes Disk identifier (GUID): 8ACD2112-5EBF-11ED-8F56-00A098E3C14E Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33 First usable sector is 40, last usable sector is 62914519 Partitions will be aligned on 8-sector boundaries Total free space is 4016 sectors (2.0 MiB) Number Start (sector) End (sector) Size Code Name 1 40 532519 260.0 MiB EF00 efiboot0 2 534528 17311743 8.0 GiB A502 swap0 3 17311744 62912511 21.7 GiB A504 zfs0 router:~ # zpool import pool: testing id: 8013833172609421701 state: UNAVAIL status: One or more devices are missing from the system. action: The pool cannot be imported. Attach the missing devices and try again. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-3C config: testing UNAVAIL insufficient replicas zvol/zroot/asterisk2p3 UNAVAIL cannot open 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..... 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