Replace non redundant HDD by a newer one

vmoriaux

Dabbler
Joined
Dec 12, 2023
Messages
10
I'm running a very small server, with a single nvme for the boot pool, a single SSD for my apps, and an old 4TB HDD for my data. At some point I had some errors on the SSD and HDD. I replaced the SSD, but I think it might have been the cables that were causing CRC issues and nothing else. Since I replaced the cables my HDD don't show any error, even after scrubbing.

Yet, 4TB starts to be a bit tight, and, because of the errors, I got myself a shiny new WD Red Plus disk (6TB). I understand replacing a disk from a non mirrored pool is not straight forward. But I'm sure there is a way. Any advise to minimize the hassle? For example it would be nice to not have to change my shares or app volumes after the switch. I suppose I can take the SSD pool offline to plug the new HDD instead to perform the data transfer, but I'm not even sure how to perform a full disk replication.

TrueNAS-SCALE-23.10.1

Thanks
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I understand replacing a disk from a non mirrored pool is not straight forward.
Sure it is, if you can connect both disks at the same time. If you can, then do that, then replace the disk just like you would any other. Once the replacement finishes, you can remove the old disk.
 

vmoriaux

Dabbler
Joined
Dec 12, 2023
Messages
10
Sure it is, if you can connect both disks at the same time. If you can, then do that, then replace the disk just like you would any other. Once the replacement finishes, you can remove the old disk.
Do I just plug them both, and "replace" from the UI ?
 

vmoriaux

Dabbler
Joined
Dec 12, 2023
Messages
10
OK, I did exactly that:
* stop all my apps
* shutdown
* disconnect the SATA SSD
* Connect the new HDD instead
* boot
* go through the disk replace process and waited for several hours for the re-silver to complete.
* at the end the new disk/vdev is in the pool, the old disk was removed
* before restarting I attempted the expand pool to use the full disk space but that failed because the disk was in use (I didn't see a cloud sync task started. But it said it would be OK after a reboot

So
* I shutdown
* removed the old HDD
* plug the new HDD instead
* replugged the SATA SDD at it's original location
* restarted

Surprise, my HDD pool doesn't have a VDEV anymore ! Yet the disk is properly detected.

What did I miss and how do I import my HDD into the pool?
 

vmoriaux

Dabbler
Joined
Dec 12, 2023
Messages
10
Even plugging back the old disk, the pool still doesn't have any VDEV. So it is offline, and the disk is "available"
 
Top