I’ll replace one of the 3TB drives with a 4TB drive. This’ll allow for a size upgrade (eventually–once all the drives are replaced with 4TB drives). It also means I’m rotating out older drives with new ones. I added a sticker to the drive to show the date, so future me can see which drives are oldest.
With the old drive removed, zpool status shows the pool as “degraded” with a drive missing.
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada5 ONLINE 0 0 0
9875896178717210589 UNAVAIL 0 0 0 was /dev/ada6
Plugging in the new drive makes no change here. Off to NAS4Free’s “Disk -> Management” screen. It shows a warning saying the physical devices have changed, and to import disks with the “clear configuration” option enabled. Do that, and Apply Changes. The disk is now listed normally, but with the Filesystem marked “unknown or unformatted”.
Now to the “ZFS -> Tools” screen. Select ‘replace a device’. Select the pool, tap next. Select “ada6” and tap next. It ran “zpool replace ‘tank’ ‘/dev/ada6′”, and now the status shows it silvering the new drive.
pool: tank
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 Fri Jan 19 16:29:06 2018
144G scanned out of 5.07T at 538M/s, 2h40m to go
24.0G resilvered, 2.77% done
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada5 ONLINE 0 0 0
replacing-5 UNAVAIL 0 0 0
9875896178717210589 UNAVAIL 0 0 0 was /dev/ada6/old
ada6 ONLINE 0 0 0 (resilvering)