Quantcast
Channel: Active questions tagged openzfs - Server Fault
Viewing all articles
Browse latest Browse all 29

How to remove a device from a ZFS pool? [duplicate]

$
0
0

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: ONLINEconfig:        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     0errors: No known data errors
$ sudo zpool remove tank ata-TOSHIBA_DT02ABA400_90D1S0Q2S75Hcannot remove ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H: out of space

Actually the whole ata-TOSHIBA_DT02ABA400_90D1S0Q2S75H should be free, I think?

$ sudo zpool listNAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOTtank  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.


Viewing all articles
Browse latest Browse all 29

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>