Recommended way to migrate my main pool from RAID1 (2 disks) to RAIDZ1 (4 disks)

I do this fairly often.

This is how I do it

  1. add new disks… make new pool.
  2. replicate existing datasets of existing pool onto new pool using once off data replication in the gui. Ensure that the destination is NOT set read-only. Verify the new pool looks like how you expect…
  3. export old pool, don’t erase, don’t zap configs.
  4. rename new pool to match old pool following this guide:
    HOWTO: Rename a ZFS pool

Tada.

Maybe restart.

4 Likes