RSync VS ZFS Replication task for existing data

djb

Explorer
Joined
Nov 15, 2019
Messages
76
Hello everyone,

I have 2 X Truenas12 U5,1 boxes with existing and identical data on 1 SMB share.
The sync was done through software filesync from another intermediate server from SMB to SMB. The setup is very clear like below:

Truenas A -> Pool A -> Dataset A -> SMB A
Truenas B -> Pool B -> Dataset B -> SMB B

Now that intermediate server is gone, and i'm asking what is possible now to do, use Rsync module & task or ZFS Replication? (i don't count syncthing because of issues).

Considering that data is written differently on the 2 ZFS filesystems, so the snapshots are different, and taking into account that zfs replication is based on existing snapshots, will it be ok to start ZFS replication on those 2 datasets ? Or is better maybe to start clear, or stick to RSync ? Thanks for any suggestions.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
will it be ok to start ZFS replication on those 2 datasets ?
No, you would need to either kill the target or somehow manually transfer over a copy via send | recv first so the snapshots are matching.

Or is better maybe to start clear
As above, that's an option.

or stick to RSync ?
It will get you the result... maybe slower depending on the options you use and how many files/directories there are to traverse.
 
Top