Alan Smithee
Dabbler
- Joined
- Feb 24, 2015
- Messages
- 13
Testing the RaidZ2 system (with no meaningful data on it) on FreeNAS 9.3. In the GUI I took a drive offline, wrote some data to the degraded array (still worked) and wanted to bring the offline drive back online. The GUI has a "replace" button, but when I select the offline drive and hit the replace button, I get
I tried to RTFM (and follow procedures for replacing a drive) but no matter what I do, the offline drive will not come back online. This scenario is just a simple case of offline one drive / see if raid still works / online one drive....but I'm stuck on the last step. I'd like the raidz2 to be non-degraded in the end.
I'm not sure what I need to do on the CLI to make the replace command happy.
Code:
[MiddlewareError: Disk replacement failed: "invalid vdev specification, use '-f' to override the following errors:, /dev/gptid/dcd6788b-bd71-11e4-88bf-ac9e17e0a1f4 is part of active pool 'tank', "]
I tried to RTFM (and follow procedures for replacing a drive) but no matter what I do, the offline drive will not come back online. This scenario is just a simple case of offline one drive / see if raid still works / online one drive....but I'm stuck on the last step. I'd like the raidz2 to be non-degraded in the end.
Code:
[root@freenas] /mnt/tank/media2# zpool status pool: freenas-boot state: ONLINE scan: scrub repaired 0 in 0h1m with 0 errors on Tue Feb 24 18:09:05 2015 config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 da0p2 ONLINE 0 0 0 errors: No known data errors pool: tank state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://illumos.org/msg/ZFS-8000-2Q scan: scrub repaired 0 in 3h11m with 0 errors on Wed Feb 25 23:08:05 2015 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz2-0 DEGRADED 0 0 0 gptid/359e0da7-bc44-11e4-9b5c-ac9e17e0a1f4 ONLINE 0 0 0 6653922782831483518 UNAVAIL 0 0 0 was /dev/gptid/35fbaef8-bc44-11e4-9b5c-ac9e17e0a1f4 gptid/36580bea-bc44-11e4-9b5c-ac9e17e0a1f4 ONLINE 0 0 0 gptid/36b8783a-bc44-11e4-9b5c-ac9e17e0a1f4 ONLINE 0 0 0 errors: No known data errors [root@freenas] /mnt/tank/media2# zpool online tank gptid/35fbaef8-bc44-11e4-9b5c-ac9e17e0a1f4 warning: device 'gptid/35fbaef8-bc44-11e4-9b5c-ac9e17e0a1f4' onlined, but remains in faulted state use 'zpool replace' to replace devices that are no longer present
I'm not sure what I need to do on the CLI to make the replace command happy.