From nobody Mon Nov 07 23:43:52 2022 X-Original-To: fs@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 4N5nqs00cfz4gkjw for ; Mon, 7 Nov 2022 23:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19: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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5nqr38BVz5VyG for ; Mon, 7 Nov 2022 23:43:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5nqr2GTwzKk7 for ; Mon, 7 Nov 2022 23:43:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2A7NhqdP086883 for ; Mon, 7 Nov 2022 23:43:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A7NhqPa086882 for fs@FreeBSD.org; Mon, 7 Nov 2022 23:43:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 246750] ZFS: Confusing error message when creating ZFS pool on vdev Date: Mon, 07 Nov 2022 23:43:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dan@sunsaturn.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667864632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O8XXe/yCUS2UtfJQHOgKO87kYC761+cqkdZ5kUKCE34=; b=SwTznLrv/aKLeGwqR76NVuQCHBilGROyS82i8gCs/oMAgOtVD8Ei+mVdnqTxjX0pbfJ6jy b1cnaCnXaa9OTGa1xhGbTIoFdeXJCso/4uxZrWaMh9VOlcTmpjiYdHkVdspZDLWHEfTvl5 NOcYHHy9kqM2zKNkafr3uy9baE1OU2rC9L3uzjAYDyIwFR6HY/BTso9XNtVS9XQ/abpnK4 iwXsZrdLrtEC/JN1IJaQ0W8WmwQt+hB1kOm9sramJmeUkSzUGlhrDjfZ31zYbWb3l+RG5s zaYs7U43ZmPKCgJUynXqgx0nkq2mSPDvPDbs+YvxvsIX4k3fFYjrp9+FkjLs9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667864632; a=rsa-sha256; cv=none; b=K9BSAoGyduh5H32/4jnJHbEQaS7QcpRXnwlfGGu3YRbAm49EX9rzwisw+LNwO2zetbqOVS a69kZNYXYUeqWNxlSvLdZkGUy811VHy4kGFN2HVDPzexW7NKhDwYpxoW8Bv+MFirTCJ8iF uCbO0frEvqDNdAqqo+uyown0U7SmQoadLQKyHz2zMzRP54zJAiW4mNdKaJjJ0S+a5Zz5Q8 AC8DCB8X1z01Ls8khIwrp7G7bJNRid563wSz1Q4tnjNIstk/1H34SUzd1pIOm5lxzNxaYB iZsxpK1YtqTILBcY4/te5tnZ8IVdjo3gRo0Tuq3o4KTriAX+IV/IzWYCscCWQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246750 dan@sunsaturn.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dan@sunsaturn.com --- Comment #4 from dan@sunsaturn.com --- Pretty serious bug, no way to mount a zfs pool from a zvol without it. Any progress on this? Issue: zfs create -V30G -o volmode=3Dfull zroot/asterisk2 (install a ZFS guest on it) router:~ # gpart show /dev/zvol/zroot/asterisk2 =3D> 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=3D1 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 zpool import -fR /mnt testing This hangs forever.... The only way to import that pool from the zvol. --=20 You are receiving this mail because: You are the assignee for the bug.=