I just recently had a faulty disk in a larger pool (6xVDEV with 6 disks in RAIDZ2 each) and wanted to replace it now with a new disk. However, the only disk with the same model that I have available is one that has previously been in a mirror VDEV on a test server, so it will have data (including half a pool) on it.
Is there any recommended way to use such a disk as a replacement in TrueNAS? Should it be wiped on a different system first or is there additional steps in the replacement procedure? Or can I just swap it with the faulted disk and click “replace” on the faulted one in the GUI under VDEVs?
I tried it via the Vdev → select faulted disk → replace path first but that threw an error that the disk was supposedly already part of the pool. Maybe because TrueNAS assigned it the same /dev/sdx name and it had a ZFS pool signature on it?
So, I tried wiping it first under Storage → Disks and afterwards I could successfully select it via Vdev → select faulted disk → replace. It did not even need “Force” at that point. It’s resilvering now, which I guess will take a few days.