How to clear the 'remove:' line from 'zpool status'

Ronald Klop ronald-lists at klop.ws
Sun Dec 6 20:51:47 UTC 2020


On Sat, 05 Dec 2020 07:07:02 +0100, Dustin Marquess <dmarquess at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zpool_main.c.diff
Type: application/octet-stream
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20201206/bf3decb6/attachment.obj>


More information about the freebsd-current mailing list