Swap in Faulted Drive

Fongaboo

Dabbler
Joined
Nov 12, 2013
Messages
30
Have a four-drive RAIDZ1 pool and one drive (ada1) is degraded. I watched this tutorial, which seems simple enough. However, he has the luxury of already having quasi-hot spares in place. So he can initiate the replacement in-place.

I would have to connect a fifth drive either using a USB-to-SATA adapter, or using a SATA expansion card I have inside the TrueNAS.

The new drive would ostensibly show up as a different device in /dev/. I could then replace it in the same fashion he does.

But what happens when I shut down, pull out the bad drive, and pop the replacement into the now-empty bay? Once it boots up, I imagine the new drive would show up as /dev/ada1. Will it 'just work' from there? Or will there be another step to take because of the dev name change?

TIA
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
ZFS does not care about different device names. It builds the pool from IDs on the disks, so all the disks can change ports and the pool would be fine.

Following the documented procedure for disk replacement should just work. Give it a read, the main link is at the top of the page. Digging through it, I found;
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Top