From nobody Fri Jan 28 03:51:00 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 38DB71977B92 for ; Fri, 28 Jan 2022 03:51:03 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4JlNm569Hdz4T0R for ; Fri, 28 Jan 2022 03:51:01 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 20S3p0IV067288; Fri, 28 Jan 2022 03:51:00 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 20S3p0nA067287; Thu, 27 Jan 2022 19:51:00 -0800 (PST) (envelope-from david) Date: Thu, 27 Jan 2022 19:51:00 -0800 From: David Wolfskill To: fs@freebsd.org Subject: ZFS: How may I get rid of a zpool that has no extant devices? Message-ID: 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="E0enTm4dVGv22fDc" Content-Disposition: inline X-Rspamd-Queue-Id: 4JlNm569Hdz4T0R X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [-4.23 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[catwhisker.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-0.83)[-0.827]; MLMMJ_DEST(0.00)[fs]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --E0enTm4dVGv22fDc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable TL;DR: I had created a "zroot" zpool in an attempt to get a new machine booting from ZFS. I gave up on that (for reasons that aren't important for this discussion), sliced and partitioned the first drive (ada0), then madea raidz1 pool of the remaining 5 drives; the zpool is called "tank" (which is mostly a poudriere scratchpad). Now "tank" seems fine, but "zroot" shows up as (allegedly) "importable" but UNAVAIL; anything I try to do with it generates some form of "no such pool" whine. How may I make "zroot" disappear? root@freetest:/boot # zfs list NAME USED AVAIL REFER MOUNTPOINT tank 30.6G 3.57T 12.6G /tank tank/poudriere 17.8G 3.57T 17.8G /tank/poudriere root@freetest:/boot # zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ada1 ONLINE 0 0 0 ada2 ONLINE 0 0 0 ada3 ONLINE 0 0 0 ada4 ONLINE 0 0 0 ada5 ONLINE 0 0 0 errors: No known data errors root@freetest:/boot # zpool import pool: zroot id: 16397883415809375312 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: http://illumos.org/msg/ZFS-8000-3C config: zroot UNAVAIL insufficient replicas raidz1-0 UNAVAIL insufficient replicas 6484790396862720571 UNAVAIL cannot open 14408271149544307738 UNAVAIL cannot open 2973420537959971822 UNAVAIL cannot open 17206168682675537956 UNAVAIL cannot open 16237056652067533889 UNAVAIL cannot open root@freetest:/boot # zpool destroy zroot=20 cannot open 'zroot': no such pool I am willing to back up tank, destroy the whole mess, and restore it; the machine is still in its 'shakedown" phase, and is destined to become my new build machine (so it should spend most of its time powered off). That said, if there's a (sane) way to clean this up without the backup/ restore, I'd appreciate knowing about it. Thanks! Peace, david --=20 David H. Wolfskill david@catwhisker.org Republican Senators had two chances to hold Donald Trump accountable for his malfeasance in office during his term -- and utterly failed. See https://www.catwhisker.org/~david/publickey.gpg for my public key. --E0enTm4dVGv22fDc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQSr0Kzv+UJRY3wfOii0+6PfV4Ix1AUCYfNoJF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QUJE MEFDRUZGOTQyNTE2MzdDMUYzQTI4QjRGQkEzREY1NzgyMzFENAAKCRC0+6PfV4Ix 1JC7AQDFs9cdK3TYGAsqUFIG5/YV0Xe4xO9U7Xwct1MYTNYydgD+I3qc/fP3/mo8 KsN8jYgKsbd6mlA92XBa7DqapjMvNAw= =/8UO -----END PGP SIGNATURE----- --E0enTm4dVGv22fDc--