Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 May 2022 10:23:44 +0500
From:      "Eugene M. Zheganin" <eugene@zhegan.in>
To:        freebsd-stable@freebsd.org
Subject:   cannot remove/detach missing disk from zmirror: no valid replicas
Message-ID:  <5f9fcb73-b824-b9be-8a40-41401a774a04@zhegan.in>

next in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5f9fcb73-b824-b9be-8a40-41401a774a04>