From owner-freebsd-current@freebsd.org Sun Dec 6 20:51:47 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CD2F34AA78E for ; Sun, 6 Dec 2020 20:51:47 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CpzBp5r1Qz4pVG for ; Sun, 6 Dec 2020 20:51:46 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Content-Type: multipart/mixed; boundary=----------fKOd1qWmDN9DqBdp1zvjgm To: "FreeBSD CURRENT" , "Dustin Marquess" Subject: Re: How to clear the 'remove:' line from 'zpool status' References: Date: Sun, 06 Dec 2020 21:51:44 +0100 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED, BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF autolearn=disabled version=3.4.2 X-Scan-Signature: 40b81d93390a3dca3ee709c9c36a2335 X-Rspamd-Queue-Id: 4CpzBp5r1Qz4pVG X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[195.190.28.88:from]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[195.190.28.88:from]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; HAS_ATTACHMENT(0.00)[]; SPAMHAUS_ZRD(0.00)[195.190.28.88:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; FREEMAIL_TO(0.00)[freebsd.org,gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2020 20:51:47 -0000 ------------fKOd1qWmDN9DqBdp1zvjgm Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Sat, 05 Dec 2020 07:07:02 +0100, Dustin Marquess wrote: > So I stupidly did a 'zpool add' instead of a 'zpool attach'. Luckily > I was able to 'zpool remove' the device thanks to the remove work done > a while back. > > However, now I can't for the life of me get this part of the 'zpool > status' output to go away: > > pool: zroot > state: ONLINE > scan: scrub repaired 0B in 00:01:06 with 0 errors on Fri Dec 4 > 18:18:31 2020 > remove: Removal of vdev 1 copied 104K in 0h0m, completed on Fri Dec 4 > 18:10:08 2020 > 72 memory used for removed device mappings > config: > > I've tried 'zppol clear', 'zpool scrub', and rebooted. Is there some > way to clear that 'remove' line? It's irritating my OCD :(. > > Thanks! > -Dustin Apply attached diff and rebuild world, Untested. Might have unwanted effects. Regards, Ronald. ------------fKOd1qWmDN9DqBdp1zvjgm Content-Disposition: attachment; filename=zpool_main.c.diff Content-Type: application/octet-stream; name=zpool_main.c.diff Content-Transfer-Encoding: Base64 LS0tIHN5cy9jb250cmliL29wZW56ZnMvY21kL3pwb29sL3pwb29sX21haW4uYy5v cmlnCTIwMjAtMTItMDYgMjE6NDM6NTEuODc1MzYwMDAwICswMTAwCisrKyBzeXMv Y29udHJpYi9vcGVuemZzL2NtZC96cG9vbC96cG9vbF9tYWluLmMJMjAyMC0xMi0w NiAyMTo1MDoyNi40MDE5ODMwMDAgKzAxMDAKQEAgLTgyMTEsMTMgKzgyMTEsOCBA QAogCQludmxpc3RfdCAqKnNwYXJlcywgKipsMmNhY2hlOwogCQl1aW50X3QgbnNw YXJlcywgbmwyY2FjaGU7CiAJCXBvb2xfY2hlY2twb2ludF9zdGF0X3QgKnBjcyA9 IE5VTEw7Ci0JCXBvb2xfcmVtb3ZhbF9zdGF0X3QgKnBycyA9IE5VTEw7CiAKIAkJ cHJpbnRfc2Nhbl9zdGF0dXMoemhwLCBudnJvb3QpOwotCi0JCSh2b2lkKSBudmxp c3RfbG9va3VwX3VpbnQ2NF9hcnJheShudnJvb3QsCi0JCSAgICBaUE9PTF9DT05G SUdfUkVNT1ZBTF9TVEFUUywgKHVpbnQ2NF90ICoqKSZwcnMsICZjKTsKLQkJcHJp bnRfcmVtb3ZhbF9zdGF0dXMoemhwLCBwcnMpOwogCiAJCSh2b2lkKSBudmxpc3Rf bG9va3VwX3VpbnQ2NF9hcnJheShudnJvb3QsCiAJCSAgICBaUE9PTF9DT05GSUdf Q0hFQ0tQT0lOVF9TVEFUUywgKHVpbnQ2NF90ICoqKSZwY3MsICZjKTsK ------------fKOd1qWmDN9DqBdp1zvjgm--