Migrate Single Drive Stripe to 3x1TB RaidZ

MattATX

Cadet
Joined
Sep 22, 2023
Messages
2
Howdy! I have a small TrueNAS Core deployment that I've been running on a single 1TB striped volume for a bit now. I've been really happy with it so far, and I'm ready to "graduate" to a slightly more "proper" deployment, and have some redundancy with RaidZ in a 3x1TB configuration!

From what I've seen on the forums you can't shrink an existing pool, but given that my current pool uses less than half of the disk, I was hoping I could somehow export the data to a temporary backup pool, nuke the original pool, create a new RaidZ pool using 500GB on each disk, nuke the backup, then expand the pool on each disk to use the entire disk. I'd really appreciate hearing y'all's thoughts, and any guidance on how to accomplish this!

Cheers,
Matt

1695443759921.png

1695443856566.png
 

ChrisRJ

Wizard
Joined
Oct 23, 2020
Messages
1,919

MattATX

Cadet
Joined
Sep 22, 2023
Messages
2
You can only use entire disks
In the current configuration, does that put me SOL for migrating my data without offloading it externally first? If that's my only option, what would be the easiest way to go about it?
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Single 1TB disk, and add two more for raidz1?

Do this:
New pool with 2x1TB and 1xsparse file, to 3-wide raidz1
Offline sparse file
Zsend/zrecv data over
Verify, and again, and maybe even a third time, that you have all data. Last chance!
Destroy old pool
Replace offlined sparse with 1TB from old pool
Wait for resilver
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Single 1TB disk, and add two more for raidz1?

Do this:
New pool with 2x1TB and 1xsparse file, to 3-wide raidz1
Offline sparse file
Zsend/zrecv data over
Verify, and again, and maybe even a third time, that you have all data. Last chance!
Destroy old pool
Replace offlined sparse with 1TB from old pool
Wait for resilver
You forgot the "Here be Dragons!" warning.

This resource covers it in more detail;
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You forgot the "Here be Dragons!" warning.
I am currently deep into Beowulf. Finished Maria Dahvana Headley's incredible translation and started to read the new one by Tom Shippey.
 
Top