Move 2TB Mirror to New RAIDZ2

Hi everyone,
I currently have a 2TB mirror vdev, and I’ve just purchased 4 new drives to create a RAIDZ2 setup.
Is it possible to migrate the existing mirror vdev and all its data directly to the new RAIDZ2 pool without losing data?

Thank you!

What do you have to migrate? Just data or apps and vm’s also?

Can your hardware support all six drives at the same time?

You should post your entire details, hardware, OS version, etc. for the best advice.

Hello!
I want move all data and apps and vmto new drives
I think my hardware can support all six drives at the same time

My system specs:
TrunNAS Scale 24.04
E5-2699v3
x99m killer
ECC DDR4 2666 16G*4

Thanks

mirror → raidz2 : no migration path
You have to create a new pool and replicate from the old pool, or a backup thereof, to the new pool.

@etorix with trying to move aps and VMs, etc. Would you recommend going to Electric Eel first then trying to migrate data? Fangtooth 25.04 due soon? What would be your advice for @Bibi ?

I’m still on CORE… :laughing:
Migrating to Electric Eel is a given, but unless Incus is highly desired, I see no reason to rush to Fangtooth.

1 Like

Gave you a Laughing Like. I am sticking with Core too, so far.

@Bilbi there were a bunch of big changes between 24.04 and 24.10 on how apps, etc were done. You probably want to check the release notes and documentation between them.

hi
I check 24.10
Apps feature backend moves from Kubernetes to Docker and get OpenZFS feature
you think i should update to 24.10 than create raidz2 and add mirror drives to new vdev?
OpenZFS can possible to do so?

Either upgrade to 24.10 and then creating your new Raid-Z2 pool and moving all the data or doing it all on 24.04 and then upgrading later? I think it is about the same.

It’s more that I am not familiar with where the apps and VMs store their data and the mappings of the data shares to the apps and VMs.

I don’t know how many apps and VMs you have and if it is easier to concentrate on moving the system data set and basic data to your new pool and recreating all your apps and VMs or moving them.

As others have already said, updating to 24.10 is a good idea ( don’t forget to make a backup of your config prior to the update, IIRC TrueNAS will prompt you to do so anyway ).

But I’m not sure what you mean by “add mirror drives to new vdev”?
Do you mean to add the old drives to the one (and only) VDEV in the new pool via raidz expansion (which only will work if the new drives don’t have a larger capacity than the old drives)?
Or create a second VDEV in the new pool with the mirrored drives?
IMHO the latter sounds like a bad idea.

One thing to keep in mind when using raidz expansion is that your old data will still use the original data to parity ratio and only new data blocks will use the new more favorable data to parity ratio. There are scrips like this one that will create a copy of each of your files and move them back to replace the old one, thus creating data blocks with the new data to parity ratio. No idea, what to do with ZVOLs for that.

I think it is just a translation issue. Original posts seem to be currently on Mirror, want to move to Raid-Z2. Thinks can have both pools at once on server.

hi
Just move mirror vdev and data to new raidz2

I use 6 apps from iX Community and 1 vm
just if can, i dont want to Configure apps again

You can make a degraded raidz2. Then replicate all your data to the raidz2.

Now you have two copies.

Then replace a degraded disk with one of your mirror disks.

Now you are protected again.

Then replace the other.

Congratulations on your safe migration from a mirror to a 6-way raidz2

1 Like

hi,

so first make raidz2 than make raidz2 pool degraded and use one of mirror disk to replace a degraded disk, than my raidz2 will have mirror disk data and i can use new disk to replace 2tb disk?
my new disk is 14tb*4

thank you

Not quite: We understood you wanted to re-use the existing 2 TB drives in the new pool to eventually have a 6-wide raidz2.

This being a 4-wide raidz2 with much larger drives, you replicate from old to new and be done with it.

1 Like