Check if second mirror has data

TristanM

Dabbler
Joined
Sep 16, 2017
Messages
20
Did you try to detach the lonely drive?

I just get the following:

Code:
root@nas2:~ # zpool detach Vault gptid/db570d5a-aa08-11ed-968c-c86000886504
cannot detach gptid/db570d5a-aa08-11ed-968c-c86000886504: only applicable to mirror and replacing vdevs


I am not even sure if I am meant to reference the drive as gptid/db570d5a-aa08-11ed-968c-c86000886504?

Code:
root@nas2:~ # zpool status Vault
  pool: Vault
 state: ONLINE
  scan: scrub repaired 0B in 11:00:01 with 0 errors on Sun Apr 23 11:00:03 2023
config:

        NAME                                            STATE     READ WRITE CKSUM
        Vault                                           ONLINE       0     0     0
          mirror-0                                      ONLINE       0     0     0
            gptid/892753c7-9c9f-11e7-8722-c86000886504  ONLINE       0     0     0
            gptid/89eb05c6-9c9f-11e7-8722-c86000886504  ONLINE       0     0     0
          gptid/db570d5a-aa08-11ed-968c-c86000886504    ONLINE       0     0     0
 
Last edited:

TristanM

Dabbler
Joined
Sep 16, 2017
Messages
20
I took a chance and updated the pool, I then run
Code:
zpool remove
and it returned to prompt with no message, I ran it again and it states that I am out of space?

Code:
root@nas2:~ # zpool remove Vault gptid/db570d5a-aa08-11ed-968c-c86000886504
cannot remove gptid/db570d5a-aa08-11ed-968c-c86000886504: out of space
root@nas2:~ #


In my limited understanding, I have space on the remaining drives and nothing is really used on the drive I am trying to remove

Code:
root@nas2:~ # zpool list -vg
NAME                       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
Vault                     5.44T  3.06T  2.38T        -         -    27%    56%  1.00x    ONLINE  /mnt
  1863748607702446639     3.62T  3.05T   587G        -         -    39%  84.2%      -    ONLINE
    3403603333067251861       -      -      -        -         -      -      -      -    ONLINE
    17497638213541873518      -      -      -        -         -      -      -      -    ONLINE
  7790627698713706528     1.81T  6.00G  1.81T        -         -     4%  0.32%      -    ONLINE
boot-pool                 28.5G  1.20G  27.3G        -         -     0%     4%  1.00x    ONLINE  -
  138852043557284515      28.5G  1.20G  27.3G        -         -     0%  4.22%      -    ONLINE
    8697635670485482988       -      -      -        -         -      -      -      -    ONLINE
    17206858824526387694      -      -      -        -         -      -      -      -    ONLINE
root@nas2:~ #


I tried to
Code:
zpool detach
again after the update and now get:

Code:
root@nas2:~ # zpool detach Vault gptid/db570d5a-aa08-11ed-968c-c86000886504
cannot detach gptid/db570d5a-aa08-11ed-968c-c86000886504: no such device in pool
root@nas2:~ #
 

TristanM

Dabbler
Joined
Sep 16, 2017
Messages
20
Ok, went and had some breakfast, came back, and the drive is not showing. I assume there is a slight delay and that it has been removed!? Either way, looks lilke mission accomplished! Thank you all for your support, much appreciated.

Looks like @artlessknave pointed me in the right direction regarding the pool upgrade, thank you. I just had to risk it and then it enabled me to detach the drive as suggested by @Davvo.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Ok, went and had some breakfast, came back, and the drive is not showing. I assume there is a slight delay and that it has been removed!?
Output of zpool status?
 
Top