I wanted to add ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H into the raidz1-0. Running zpool add tank ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H unfortunately it becomes:
$ zpool status
pool: tank
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ata-TOSHIBA_DT01ACA300_X7NYZ37AS ONLINE 0 0 0
ata-TOSHIBA_DT01ACA300_48HNETHAS ONLINE 0 0 0
ata-TOSHIBA_DT01ACA300_49E8GHPAS ONLINE 0 0 0
ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H ONLINE 0 0 0
errors: No known data errors
$ sudo zpool remove tank ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H
cannot remove ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H: out of space
Actually the whole ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H should be free, I think?
$ sudo zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
tank 11.8T 7.84T 3.96T - - 0% 66% 1.00x ONLINE -
May I know how to remove it, and how to add it into the RAID-Z properly?
Thanks.
$ sudo zpool offline tank ata-TOSHIBA_DT02ABA400_90D1S0Q2S75Hshowscannot offline ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H: no valid replicas– ロジャー Jan 08 '22 at 15:54$ sudo zpool detach tank ata-TOSHIBA_DT02ABA400_90D1S0Q2S75Hgivescannot detach ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H: only applicable to mirror and replacing vdevs– ロジャー Jan 08 '22 at 16:18spare-0level. – ロジャー Jan 09 '22 at 00:50tankpool to try removing thedevice. Now it givescannot remove ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H: invalid config; all top-level vdevs must have the same sector size and not be raidz.. It seems extending RAIDZ will not be available until late 2022. https://louwrentius.com/zfs-raidz-expansion-is-awesome-but-has-a-small-caveat.html Maybe I will rebuild everything into a MIRROR instead at this moment. – ロジャー Jan 09 '22 at 10:43