Migrate a dataset from a mirror setup over a tempporary drive?

running TrueNAS SCALE Fangtooth 25.04

Hi, i’m not sure if this is a common problem, if yes please refer me to a post where this has been solved if you know one.

i currently have an old PC running a 2 drive 4TB mirror setup (2x4TB) and am planning to upgrade to a 4 drive RAID Z1 with 12TB (4x4TB, with two drives being reused)

i was planning on buying 3x4TB drives, transferring the dataset to a single one, making a RAID Z1 setup and transferring the dataset back from it and keeping the single drive as a backup one to swap in if one breaks.

what would you think is the best way to do that? i’m a total newbie so detailed instructions would help greatly!

Then you do not need a temporary copy: Remove one drive from the mirror (Storage > Manage Drives), create the 4-wide raidz1 (3 new + removed), set up a manual, one-off, replication task to transfer your data from one pool to the other, and remove “read only” from the destination when it’s done.
Keep the old drive as backup and possible spare.

1 Like

thank you for the quick reply!

could this also be done with 2 new drives? i.e. set up the RAID with one drive missing? i’m trying to save a buck where i can.

Yes, but then it will require some CLI trickery, and extend the time during which your data is at risk.
Create a sparse file. Create the raidz pool from the CLI with 2 new drives, a removed drive, and the sparse file. (Ideally, you’d reproduce the partition layout that the middleware woud create, including the 2 GB padding space, and use UUID to create the pool.)
Offline the sparse file. Replicate your data to the degraded raidz, and then use the old drive to replace the missing sparse file (from GUI).

1 Like

okay, again thanks for replying.

i’m gonna go the first route then, not keen on messing with CLIs.
i assume you mean a replication task in the data protection menu?
would all of my apps and stuff still work if i used the original name for the copy?

Yes, a replication task from GUI, without a schedule, to migrate your data. For the apps, use the GUI (Apps > Configuration) to move the special hidden dataset.
And then, if you don’t want to adjust your shares and paths, rename the new pool to match the old one.

awesome, i cannot thank you enough. ordered 3 drives just now. have a good one!

1 Like