Migrating from Old Pool to a Completly New Pool

Hello,

I have just finished this and want to give a guide of what I did and what mistakes to avoid.

Pool a will be the old Pool
Pool b will the new Pool

  1. Power Off Device
  2. Connect all new Drives
  3. Power On
  4. Create a new Pool of the new drives.
  5. Stop all VMs, Services and Apps.
  6. Apps → Settings → Unset Pool
  7. Data Protection → ReplicationTask → Add
    7.1 Dataset A to Dataset B
    7.2 Select Recursive if you want to recreate all the datasets and its data in the new pool and nothing else.
    7.3 Select Full File System under Advanced if you want to replicate everything, like older Snapshots.
    7.4 Select Run Once
    7.5 Wait Until its finished
  8. Ensure the replecation was succesfull
  9. Export Pool A. Ensure that you do not delete the Pool
  10. Export Pool B. Ensure that you do not delete the Pool
  11. Storage → Import Pool. In the Dropdown will be the exported Pools listed, followed by some Numbers. Take note of the Numbers of Pool B.
  12. Use the shell and run the following commands
    12.1 sudo zpool list to ensure that none of the Pools you exported are listed
    12.2 sudo zpool import <Pool B Name> <Pool A Name> This will rename Pool B to Pool A
    12.3 sudo zpool export <Pool A Naem> Export the renamed Pool again, as it will not mount under truenas if its not imported under the GUI.
  13. Storage → Import Pool → Pool A Name | numbers matching from step 11
  14. Apps → Settings → Choose Pool

Viola you just inplace replaced your old Pool

5 Likes