Moving data out of a legacy encrypted pool

Hi,

I would like to prepare a move of data that is currently stored in a legacy encrypted pool (= poolA) on a TrueNAS Core host. There are a couple of questions I have performing this move:

  1. Should the new pool (= poolB) be a ZFS encrypted pool? While I do understand that this is a bit of personal preference, I was wondering whether the ZFS encrypted storage pools will at some point be not supported or - like it is with the legacy encryption now - be somewhat of an obstacle when upgrading in the future?

  2. How to move the actual data? Is it recommended to just log into a root ssh session and run an rsync command? Is rsync recommended to perform such a move?

  3. Rsync options: I looked into the rsync options and came up with the following. Is that a proper way to move roughly 2.9 TB of storage?

    rsync -aHAX /poolA /poolB

  4. Due to hardware limitations the newly created poolB will initially consist of 2 drives to enable the data move. Am I right to understand that I will be able to add additional physical drives to the pool using the TrueNAS Community Edition at a later point in time?

Any feedback is greatly appreciated.

  1. Your preference. Your guess, but I would assume that ZFS native encryption is here to stay in OpenZFS, while GELI encryption is tied to FreeBSD.
  2. From ZFS to ZFS, the best option is replication, not retaining the settings of the original pool so as to enforce the new encryption setting on destination.
  3. Two drives have to be a mirror. You can always add further mirror vdevs later. But you’d need to start with three or four drives to have a raidz1/2 pool.
1 Like