Solved resilvering to same drive

I offline'd a drive which I thought was bad. Turns out it needed a firmware update (so it was bad, in matter of speaking) and now I'd like to resilver that offline'd drive, but:

Code:
# zpool status
...
            da23                 ONLINE       0     0     0
            3190538079074733256  OFFLINE      0     0     0  was /dev/da24
            da25                 ONLINE       0     0     0
...

# zpool replace tank /dev/da24
invalid vdev specification
use '-f' to override the following errors:
/dev/da24 is part of active pool 'tank'

My research is telling me -f is unworkable and a bad idea. Do I have any good options here or do I need to find a new drive to resilver?
 
Have you simply reconnected/onlined the original drive after the firmware update?

ZFS should pick up that the drive has returned and try to re-integrate it into the pool.
 
Yeah, don't replace the drive with itself. Just online the drive to alert ZFS that the same drive is back, and it will start a resilver.
 
If the data is still on the device, and at da24, perhaps you want zpool online tank /dev/da24 ... otherwise (assuming a new drive is at /dev/da24) zpool replace tank (old device guid from status of pool) /dev/da24
 
Back
Top