Upgrading to new hardware for TrueNas

I’m getting a completely new hardware setup from 45homelab soon and purchased new hard drives (5x24tb) for it so that I can have something completely new. What is the fastest and safest way to transfer my data from the old system to the new system? I considered replication, but is that the best approach? I want to ensure everything is verified, copied, and done as quickly as possible. I plan on shutting down the old system once the transfer is complete (I already have a Synology NAS as a secondary backup destination).

IMHO and afaik, absolutely yes: replication Is what you need.
Is how in the past i migrated data from one pool to another (after a pool layout change) without any issue, and Is actually what I use for backup my data.
Be sure to flag recursive and full file system replication, and if you upload your old config backup from old Nas into the new you inherit everything (share, permission, ecc ecc)

Excellent. Thank you.

Using Replication suggest that you have a new system with(empty) Disks.

How to do when you want to take your Old disk to new Motherboard ?

In that case there Is no need to recreate the pool, and most probably you neither need anything more than power off → switch hardware → power on to come back fully functional. The only thing come into my mind, that will need to be adjusted Is the network, and at this stage can be achieved easily attacching keyboard/monitor to the server. (As the same if you decide for a fresh install + config backup upload).

So the backup does not contain any hardware setting/Info apart from NIC settings

No, it does not. Only the origin location, the target location. (If you use the simplified method, what you should if you do a replication on the same server.) You might use a previous template and you can name this task as a future template. You dont even need any network setting.
Also, I recommend, you move the HDD-s from the old system to the new one, because, if you have a Gbit network, your copy speed is limited to about 100 MB/sec. If you move the HDDs into the new case, the same speed will be limited by the throuhjput of the sATA interfaces (usually newer HDDs are capable up to 2-300MB/sec without problems.
You can easily import your array in the new TN system.

afaik, no. Have switched hw in the past without any issue, except for the network interface that i needed to reconfigure (if hw is similar, is not sure that this step will be necessary)

I’m thinking the same, a hardware upgrade for my system, if I change cpu motherboard PSU ram , is possible just unplug all the disks and just plug them in the new hardware without issues or will I need a fresh install?
Thanks

It’s possible, and all you typically need is to do is to adjust network settings.

1 Like

I have only done this once and it was a long time ago, but I basically got the new box up and running, plugged them directly into each other via ethernet, and did a zfs send from the old box. It ran at wire speed but it was a lot of data and took days. At the end it was all good. Maybe better ways to do it now, but zfs send didn’t fail me.

Or, you can set up a DHCP entry for the new HW before install, with the MAC address of the new NIC/MoBo.
Then only the certificate has to be re-accepted at first log in.
(and, you have to not to use the old HW and/or change its entry in your router to get another IP address f you still want to use it)

It is possible, but I dont recommend it.
If your current system is running, just save the configuration data of it somewhere that will be available after you turn off the system.
Then assembe the new system.
Start it up, and install a new instance of TN.
If ready, import all the settings from that location, you saved it
Then add your HDDs, import the pools and use the old system on your new HW.