Problem/Justification
Such a feature would allow an end user on site to replace the dead drive and not have to worry about getting things going again.
Impact
I envision the feature would by default be disabled, and have to be enabled per vdev or per pool.
User Story
Several times we have needed to change a drive out, and sent the drive to the remote site. We then have to co-ordinate with the end user to enable the replacement disk and rarely have the user NOT contact us until a few days later… >_>
Additional comment
I assume this would require complex scripting or even another piece of code so would take awhile to implement. Maybe it should even be done on the ZFS level, but I believe TrueNAS has custom partitions making that unviable.
Don’t forget to Vote for your own Feature Request.
Well, OpenZFS already has Hot Spare support. Using cold disk installation for automatic replacement probably is not something the OpenZFS team will implement. Unless it is purely by script.
In fact, there is nothing stopping someone from implementing such a script themselves, (except if they don’t have experience).
Thanks for the tip on the vote. Didn’t realise making a suggestion didn’t auto-vote for me.
I figured a script could be set to run automatically but I’m unsure if there is a drive insertion trigger, maybe udev has something for when a drive is inserted? Said script could then look to see what vdevs it fits and see if there’s a disk that needs replacing, and if iauto replace is enabled…