Date: Sun, 06 Dec 2020 21:51:44 +0100 From: "Ronald Klop" <ronald-lists@klop.ws> To: "FreeBSD CURRENT" <freebsd-current@freebsd.org>, "Dustin Marquess" <dmarquess@gmail.com> Subject: Re: How to clear the 'remove:' line from 'zpool status' Message-ID: <op.0u71kikbkndu52@sjakie> In-Reply-To: <CAJpsHY63gZdLnUF%2BZ2w0ENvyJGqokGOj8EVOF3EU9m-B7Sxyqg@mail.gmail.com> References: <CAJpsHY63gZdLnUF%2BZ2w0ENvyJGqokGOj8EVOF3EU9m-B7Sxyqg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
------------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 <dmarquess@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.0u71kikbkndu52>