Replacing drive in a 2 drive mirrored pool

I may have jumped the gun… but here we are…

2 drives in a mirrored pool. 1 drive failed. I offlined it and “exported/disconnected” it from the pool (believe this may have been a mistake?)

I powered down the drive (hdparm -y), removed it from the NAS, replaced it with another drive, same capacity as existing.

I can’t figure out how to re-add it to the mirrored pool so the resilvering can begin.

I DID manage to add the new drive as a spare, but see no way to promote it, perhaps because I removed the failed drive via the GUI?

Where do I go from here? I have a backup and can re-create the pool if necessary but would rather not.

Thanks

You did something complex when the UI makes it simple. Select the entry for the previously removed drive, choose Replace, select the new drive.

What does the status of the pool look like now?

zpool status mypool

Well, @winnielinnie is mostly right.

Adding the new drive as a Hot Spare means you can’t use it for replacement. Remove it as a Hot Spare first, then replacement can work.

I guess that’s my point. The entry for the “previously removed drive” is gone.

pool: pool
state: ONLINE
scan: resilvered 849M in 05:17:17 with 0 errors on Sat Nov 21 21:27:36 2026
config:

NAME                                    STATE     READ WRITE CKSUM
pool                                    ONLINE       0     0     0
  a3df2c67-f559-4c66-ac10-b7f4e7cc0858  ONLINE       0     0     0
spares
  be991420-9e46-46ce-a2fd-2038fda99d89  AVAIL

errors: No known data errors

I added the new drive as a spare in an attempt to promote it, but I believe my mistake was exporting/disconnecting the failed drive?

Okay, that was because you exported / disconnected it.

Simply select the existing disk and “extend”. This will “add” a Mirror to your single disk Stripe.

Go to Storage and your VDEV view. Select the Hot Spare and chose to remove it from your pool. Then you will select your single drive VDEV, click on the Extend button and then chose the former hot spare. This should add it to the VDEV and create a mirror pair.

My screenshot shows a current mirror but it should be very close to what you want to achieve.

Thank you both! Added and currently resilvering. I could SWEAR I tried to extend it before, but…

In any case, problem solved. I really appreciate the assitance.

One last comment about “Extend”. RAID-Zx Extend is different. It adds a data column to the RAID-Zx vDev. While that is what some people want, just be aware of the wording.

I personally think “Extend” for adding a Mirror sub-device is wrong. It should say “Add to Mirror”, or something similar.

28 nightly gives a bit of a warning with Raid-Z(1,2,3) and Extend. I don’t know if earlier versions do so.

I’ll just leave this here. :wink: