Replicating encrypted drive and datasets to larger drive or use Rsync or Cloning

What’s the best way to upgrade to a larger drive from an encrypted drive. I want all attributes, everything to stay the same like cloning, just swap one for the other.

Does the target drive have to be encrypted or will replication create an exact copy over everything giving me an identical encrypted drive so then all I do is remove the old and rename the new one.

Can TrueNAS scale ZFS drives be cloned using something like Clonezilla?

Drives both striped:
Source 3TB > With encrypted pool and datasets.
Target 10TB > Replication wants a ‘Snapshot’ that’s fine but it also requires ticking the encryption box, as such, Does it make any difference to the 10TB and how the pool was created encrypted or not. Do I tick the ‘Recursive’ box.

You’re mixing up the terminology.

ZFS replication does not send data from one drive to another. It sends a stream (full or incremental) from one dataset to another by using snapshots. The underlying drives or pool layout does not matter.

When you bring up something like Clonezilla, you’re making the assumption that you need a byte for byte clone of the partition table and every sector’s state. That’s irrelevant for ZFS replication.

There is not enough provided information to know. Does each pool only have a single dataset on it? Did you create any child datasets under the root dataset? (You should have.) Do you want to keep the same exact encryption that you used on the original dataset?

Since you imply that you have to have both 3TB & 10TB drives active at the same time, why not Mirror them?

When the Mirror re-sync is complete, you manually detach the 3TB and grow the pool to 10TB. This causes 100% to remain exactly the same, including the pool name, encryption details, dataset layout. This can be done live, with full access, though a bit slower as the data is copied.

I agree we need more info on what you are doing.

If I am reading your post correctly, you have a 3TB pool and you wish to upgrade to 10TB pool in the end? You could perform a Replace of the 3TB with the 10TB drive. That will move all data, and keep the same pool name, etc.

@Arwen, @winnielinnie gave you a :+1:

@SmallBarky, @Arwen gave you a :+1:

Now @SmallBarky needs to give @winnielinnie a :+1:

Ok, I’m going to P** some people of for I can’t make it any simpler. It’s all in my post:

I read on another post and it advised that replication was the way to go about it in Scale since Scale doesn’t seem to have Cores old ‘Replace’ function.

Please read my post again. keep everything the same like cloning, Drives are striped. Swap one for one. The information you ask for is there.

Looks like this may be it but I have very little know how on Scale, Used core for years but have not done anything on Truenas in over 10 years. In the past I just used to use the ‘Replace’ function I think but I cannot find in scale.

What more info??? I’ve read my post half a dozen times and it can’t be simpler. Replace one for one striped pool keeping all attributes and encryption. One for one. Nothing complicated.

I can’t find the replace function in Scale, if not there why would they remove it, Core and Scale are ZFS.

Everything read doesn’t apply to a striped pool since it seems to be assumed that you only want to replace the disk after a failure. When it comes to striped disks they state to just replace the disk and restore from backups.

Unless somebody can point where ‘Replace’ is in Scale I’m left with Mirror or experiment with Clonezilla by detaching putting the disks in spare PC see if it clones then import onto Scale.

Question: Under ZFS info for a disk, there is a button called ‘Extend’ Will this extend my pool as in add the 10TB to the 3TB total of 13TB or will it ‘Mirror’ the drive down to 3TB so then I extend the drive to take up all the 10TB’s space.

I linked the doc section on replacing a disk. (25.10) It includes screenshots. Posting screenshots of your Storage Dashboard and VDEVs windows could help. (Results from sudo zpool status -v would work also. Please use Preformatted Text mode </> or ctrl+e on toolbar) We want to make sure you are describing the pool / VDEV as we think it is. Some users end up having something else once we see it.

Your inital description reads to me like you have a pool with a single VDEV with a 3TB and you want this to end up as 10TB. All our replies were valid to clarify info. Arwen and I just listed two different methods to work with.

I think this is what you are attempting. Bring up the VDEV view, select the disk, click Replace on lower right, select the new, larger drive and click Replace Disk. The system should Resilver the data. You may have to refresh the window view to see the change at the end. Just go to a different menu and then back to the VDEV view. If your Storage Dashboard isn’t showing capacity of 10TB for the pool, you just hit the Expand button for that VDEV from the Storage Dashboard window.
(@winnielinnie I hope you like the pool name, ha, ha)

Well, you can at least make it more polite for those who try to help—even if they question your terminology.

SCALE/CE just has all the same ZFS function as CORE. So wrong assumption here.

If your terminology is correct and you made a stripe with a 3TB and a 10TB drive in the same pool, you made a mistake beacuse you cannot control what goes physically where in a stripe. Remove a drive (in GUI!) and break this stripe. @SmallBarky incidentally showed you where the button is.

My apologies, you’re right. Clonezilla will achieve exactly what you’re looking for.

Whether you already created a new pool and already have datasets and files on it, or attached or extended the existing pool’s vdev with an additional drive, or have done anything else, that’s all irrelevant and unimportant.

I apologize for trying to better understand your setup, what you’ve already done, and what terminology you might be mixing up, which has resulted in problems and data loss for others. None of that applies here. Use Clonezilla.

SmallBarky: Thank you. This is what I was looking as I have used it in the past, 10 + years ago. I tried using the search on Scale using ‘replace’ ‘Replace’ ‘replace disk’ and others but all I got was ‘No results found in UI’. I was even on that page you screen shotted as I mentioned in a previous post asking about the ‘Extend’ button and did not see the ‘Replace’ button. On my screen it’s on the far right and did not notice especially since the search function says ‘No results found in UI’ for ‘Replace’.

Will report back so that if anybody else has a similar need this may help them.

Thanks for completely misreading my responses. Please review original post and my responses for greater understanding of my needs and my attempt to simplify my question in what is the simplest of pool configuration and need to replace and expand my existing smaller disk, especially noting the timeline between my questionable response and SmallBarky’s 100% correct response I was looking for.

winnielinni: I can’t help but smile :slightly_smiling_face: Do I detect sarcasm and a hope to destroy my data? No matter, not insulted and appreciate your time, in any case at the end of the day it’s on me. I ask, for everyone here seems to be giving each other thumbs up and hugs (Damn that sounds creepy) but not you on this post?

O’ well, we shall soon see. At least I have backups :sweat_smile:

It lets you select a disk that is already part of an active pool? If so, then it warrants a bug report.