August 28, 20241 yr Author I have another quick question if you don't mind. I'm thinking about switching my hardware around and going from a 6 10TB drive raidz2 to a 4 12TB drive raidz1. Is there a simple way to migrate the shares and pool data?
August 29, 20241 yr You can use zfs replication to clone the dataset(s), let me know if you need help with the command.
August 29, 20241 yr Author Okay so the plan has changed slightly, and any help you can give me would be great. So I need to switch from a case with an 8-drive bay to a case with a 4-drive bay. In an ideal world, I would just somehow convert my current 6 drive raidz2 to a 4 drive raidz1. Is there any way to do this without reformatting and losing the data?
August 29, 20241 yr Author If that doesn't work then my next plan is the one I outlined yesterday with a slight twist. I was hoping to get new 12TB drives but that is out. I do have on hand a bunch of 8TB drives so my new plan is to create a new temporary pool with the 8TB drives. Then use the commands you offered to send to replicate the shares over to the temp pool. After that reformat the old raidz2 into a new raidz with only 4 drives. Then use the same commands to move the data back from the temp pool to the new pool on the raidz. Would that work?
August 29, 20241 yr 1 hour ago, cmoney said: I would just somehow convert my current 6 drive raidz2 to a 4 drive raidz1 That's not possible with zfs. 1 hour ago, cmoney said: Would that work? Yep, all shares must be datasets.
August 29, 20241 yr Author Okay great. If I create the new pool and send you photos would you be willing to send the commands?
August 29, 20241 yr Instead of photos post the output from zfs list -t all and the source and dest pool names
August 29, 20241 yr Author root@Unraid:~# zfs list -t all NAME USED AVAIL REFER MOUNTPOINT pool_256gb 23.0G 208G 96K /mnt/pool_256gb pool_256gb/docker 22.9G 208G 22.9G /mnt/pool_256gb/docker pool_40tb 12.2T 24.0T 240K /mnt/pool_40tb pool_40tb/documents_colin 2.23G 24.0T 2.23G /mnt/pool_40tb/documents_colin pool_40tb/downloads 9.20G 24.0T 9.20G /mnt/pool_40tb/downloads pool_40tb/media 12.2T 24.0T 12.2T /mnt/pool_40tb/media pool_40tb/software 192K 24.0T 192K /mnt/pool_40tb/software pool_40tb/sync 192K 24.0T 192K /mnt/pool_40tb/sync pool_40tb/sync_backup 4.09G 24.0T 4.09G /mnt/pool_40tb/sync_backup pool_40tb/urbackup 52.2M 24.0T 52.2M /mnt/pool_40tb/urbackup temp_pool 820K 21.0T 140K /mnt/temp_pool Edited August 30, 20241 yr by cmoney
August 30, 20241 yr I assume pool_40tb is the source and temp_pool the destination? Is all the data you want included in the existing datasets? pool_40tb/documents_colin pool_40tb/downloads pool_40tb/media pool_40tb/software pool_40tb/sync pool_40tb/sync_backup pool_40tb/urbackup
August 30, 20241 yr This is an example for how to replicate the media dataset, you can then repeat for the other ones: First create a snapshot: zfs snapshot pool_40tb/media@now To replicate that dataset to the other pool ("pv -bart" is optional, I like to use it to show the amount of data transferred and speeds during the replication): zfs send -RL pool_40tb/media@now | pv -bart | zfs receive temp_pool/media Assuming you don't want to keep that snapshot in the end you can delete it with: zfs destroy temp_pool/media@now
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.