Remove disk

Andres Gonzalez

Dabbler
Joined
Oct 21, 2014
Messages
39
Hello,

I have a pool with 8 disks, 2 Z2 vdevs.
I had a problem with a disk but by mistake instead of replacing the disk I have added the new one to the pool and now I have 2 Z2 vdevs and a new with 1 disk (stripe) vdev.
I there anyway to remove/delete the stripe vdev from the pool and add it to the z2 degraded vdev ?

- SO: FreeNAS 9.10.2
- HW: FreeNAS Mini XL

Thanks.
 
Joined
Jan 7, 2015
Messages
1,155
If you remove the stripe vdev and select the option mark disk as new, you can then add it to the degraded pool by selecting the failed disk and then replace. Do it via the GUI so as not to hose anything.

I read this as there is no data on the dev correct??, Because this will destroy anything thats on the single disk.
 

Andres Gonzalez

Dabbler
Joined
Oct 21, 2014
Messages
39
If you remove the stripe vdev and select the option mark disk as new, you can then add it to the degraded pool by selecting the failed disk and then replace. Do it via the GUI so as not to hose anything.
I don't have the option to remove it, only to offline the disk.
But if I select it (offline), I get: Error: Disk offline failed: "cannot offline ada1: no valid replicas, "

I read this as there is no data on the dev correct??, Because this will destroy anything thats on the single disk.
It's correct, the single (Striped) disk has no data but it's part of the degraded pool now.
 
Joined
Jan 7, 2015
Messages
1,155
Detach is the verbage. Post output of zpool status
 

Andres Gonzalez

Dabbler
Joined
Oct 21, 2014
Messages
39
Detach is the verbage. Post output of zpool status

pool: bigpool state: DEGRADED status: One or more devices has been taken offline by the administrator. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Online the device using 'zpool online' or replace the device with 'zpool replace'. scan: scrub repaired 0 in 43h58m with 0 errors on Mon Oct 14 19:58:18 2019 config: NAME STATE READ WRITE CKSUM bigpool DEGRADED 0 0 0 raidz2-0 DEGRADED 0 0 0 ada0 ONLINE 0 0 0 17776213561281098477 OFFLINE 0 0 0 was /dev/gptid/f1bbe0bd-bf2c-11e7-ad0d-00074335dfc0 gptid/8c469e81-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 gptid/8d1c6836-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 raidz2-1 ONLINE 0 0 0 gptid/8de985b4-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 gptid/8eb80074-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 gptid/8f839077-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 gptid/904c031e-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 ada1 ONLINE 0 0 0 logs gptid/909fada8-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 cache gptid/90d9ffdd-55b7-11e6-bbd5-00074335dfc0 ONLINE 0 0 0 errors: No known data errors
 
Joined
Jan 7, 2015
Messages
1,155
This looks strange, why some of your disks list as the dev ada instead of gptid. Looking at this is looks as though ada1 should have replaces the offline disk from raidz2-0?
 

Andres Gonzalez

Dabbler
Joined
Oct 21, 2014
Messages
39
This looks strange, why some of your disks list as the dev ada instead of gptid.
idk, but agree that it's strange. Any idea if it can be fixed ?

Looking at this is looks as though ada1 should have replaces the offline disk from raidz2-0?
Exactly, ada1 should replace:

17776213561281098477 OFFLINE was /dev/gptid/f1bbe0bd-bf2c-11e7-ad0d-00074335dfc0
 
Top