Copy server to new hardware

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I'm in the process of change my pool with shucked 12 TB drives. I need to backup my current 2 vdev 8x4TB pool and copy it to a new set of HDD. While I'm still burning in the 8x 12 TB Z2 drives I thought I would share my backup process. The set I had trouble understanding is changing the System/System Dataset to anther location in order to replicated to the root of the pool.


v1 is the source
v1 is the destination

Stop all jails on the source server with iocage stop ALL
Move System/System Dataset to freenas-boot on the destination server
Create Periodic Snapshot of v1
Create Replication task for v1 to v1
GUI on Target disconnect the pool but do not destroy the data
GUI import the existing pool
change System/System Dataset back to v1
zfs set readonly=off dataset_name zfs set readonly=off v1
iocage start ALL



Links
https://www.ixsystems.com/community...-volume-to-new-ssd-volume.42105/#post-271740]
https://www.ixsystems.com/community...a-from-one-pool-to-a-bigger-pool.40519/page-4
https://www.ixsystems.com/community/threads/zfs-send-to-external-backup-drive.17850/#post-305072
Hope this helps someone else trying to accomplish the same thing. I've tested it with a VM and old computer so I didn't care if I messed up.
 
Last edited:
Top