I replaced a drive that had bad cable (SATA cable cracked near motherboard).
New cable, new 4TB drive, GUI to replace was run and it re-silvered.
Here's the email I got before I did this (yesterday) so note the drive is now different (4TB) and says "UNAVAILABLE" but otherwise looks like below...
Code:
pool: Media
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: resilvered 1.07M in 0h0m with 0 errors on Sun Jul 23 17:11:04 2017
config:
NAME STATE READ WRITE CKSUM
Media DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
gptid/41804705-6726-11e3-831d-6805ca1adbd8 ONLINE 0 0 0
gptid/41eefd8e-6726-11e3-831d-6805ca1adbd8 ONLINE 0 0 0
8490885614271992732 OFFLINE 0 0 0 was /dev/gptid/426f00fc-6726-11e3-831d-6805ca1adbd8
gptid/dc16e4b0-8c2c-11e3-867a-6805ca1adbd8 ONLINE 0 0 0
gptid/d9cee92c-9662-11e3-a1dc-6805ca1adbd8 ONLINE 0 0 0
gptid/43c4e34c-6726-11e3-831d-6805ca1adbd8 ONLINE 0 0 0
errors: No known data errors
So went about an inline replacement for 8490885.... and now it's basically the same (new Serial # for new 4TB drive) but instead of OFFLINE it's UNAVAILABLE and in GUI only option (again).
I checked the manual and it said if replacing a failed drive in place, you do what I did, and it re-silvers and is immediately removed from the pool. Not sure why it does that as I expect if re-silvering, upon success you should be done.
So as of this AM I got this:
Code:
Checking status of zfs pools:
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Media 16.2T 6.38T 9.87T - 9% 39% 1.00x DEGRADED /mnt
freenas-boot 14.9G 6.70G 8.17G - - 45% 1.00x ONLINE -
pool: Media
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Tue Jul 25 19:40:07 2017
6.29T scanned out of 6.38T at 249M/s, 0h6m to go
1.05T resilvered, 98.53% done
config:
NAME STATE READ WRITE CKSUM
Media DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
gptid/41804705-6726-11e3-831d-6805ca1adbd8 ONLINE 0 0 0
501206551231718479 UNAVAIL 0 0 0 was /dev/gptid/41eefd8e-6726-11e3-831d-6805ca1adbd8
gptid/8f0a7046-7192-11e7-806a-6805ca1adbd8 ONLINE 0 0 0 (resilvering)
gptid/dc16e4b0-8c2c-11e3-867a-6805ca1adbd8 ONLINE 0 0 0
gptid/d9cee92c-9662-11e3-a1dc-6805ca1adbd8 ONLINE 0 0 0
gptid/43c4e34c-6726-11e3-831d-6805ca1adbd8 ONLINE 0 0 0
errors: No known data errors
Note: When this finished (shows 98.53% done but that was some time ago) the 501206551231718479 (4TB HD) is UNAVAIL.
There's no replace available as all 6 SATA ports are in use now. I will try to online it after I read the manual to see if I need to remove it first.