cannot remove/detach missing disk from zmirror: no valid replicas

From: Eugene M. Zheganin <eugene_at_zhegan.in>
Date: Mon, 02 May 2022 05:23:44 UTC
Hello,


Any chance I can sole this without replacing ? (Yeah, I accidentally 
issued "attach" instead of "replace" being fully confident that I will 
be able to "detach" later. I couldn't be more wrong.)


[root@replica:~]# zpool status
   pool: zfsroot
  state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
         continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
   scan: resilver in progress since Thu Jan  1 03:00:06 1970
         188G scanned at 122B/s, 21.7G issued at 14B/s, 2.03T total
         21.8G resilvered, 1.04% done, no estimated completion time
config:

         NAME                         STATE     READ WRITE CKSUM
         zfsroot                      DEGRADED     0     0     0
           mirror-0                   DEGRADED     0     0     0
             gpt/zfsroot1             ONLINE       0     0     0 
(resilvering)
             gpt/zfsroot0             UNAVAIL      0     0     0 cannot open
             diskid/DISK-31P58VAASp3  ONLINE       0     0     0 
(resilvering)

errors: 6 data errors, use '-v' for a list
[root@replica:~]# zpool detach zfsroot gpt/zfsroot0
cannot detach gpt/zfsroot0: no valid replicas
[root@replica:~]# uname -a
FreeBSD replica.scorista.ru 13.1-RC5 FreeBSD 13.1-RC5 
releng/13.1-n250141-2e9ad6042be GENERIC amd64
[root@replica:~]# zpool remove zfsroot gpt/zfsroot0
cannot remove gpt/zfsroot0: operation not supported on this type of pool
[root@replica:~]# zpool split -R /newroot zfsroot newroot 
diskid/DISK-31P58VAASp3
Unable to split zfsroot: pool is busy

[root@replica:~]#


Eugene.