Replacing faulted disk with disk that has data on it

Hi,

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?

Best

Just ticking the “Force” box when replacing should do.

But you may wipe it in TrueNAS or in another system if you want. wipefs or
dd if=/dev/zero of=/dev/DISK bs=1M count=500 would do.

In any case, triple-check you’re targeting the right disk.

As @etorix said, ensure you are wiping the correct drive. Always use the serial number to identify the drive.

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.