Restarting incremental replication after pool rebuild?

maxxfi

Cadet
Joined
Jul 3, 2019
Messages
6
Hello,

we have a FreeNAS backup 'BU1' that probably will need to have its pool rebuilt because of some h/w issues.
Currently there is an incremental replication established from BU1 to remote server BU2.
However, probably we'd need to rebuild BU1 pool, and because the bandwidth with BU2 wouldn't allow a fast copy
I'm building a new (temporary) local server BU3 (otherwise full recovery from BU2 would take a week)
So the idea is:
- full (fast!) replication BU1 to BU3
- stop incremental to BU2
- rebuild BU1 pool (as it was before)
- restore BU1 from BU3
- restart incremental BU1 -> BU2
(- decommission BU3)

Now the question is: in such scenario, can the incremental replication continue from where it was left,
or would BU2 detect that BU1 pool has been rebuilt and basically the replication has to start from scratch?
E.g. is there some source dataset/zpool UUID in play to be preserved to avoid that?

Thanks
 

technopop

Dabbler
Joined
Sep 14, 2015
Messages
32
I just posted a similar related question about replication.

At the moment, I think that so long as there is a common snapshot on both servers, that snapshot is the UUID/index marker (whatever you call it) that keeps the whole dataset from being re-transmitted.
 

maxxfi

Cadet
Joined
Jul 3, 2019
Messages
6
Ok. Maybe I'll do some experiments building three simple FreeNAS in Virtualbox and testing a few replication scenarios
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I'm pretty sure this should work fine.
 

maxxfi

Cadet
Joined
Jul 3, 2019
Messages
6
Indeed, FreeBSD doesn't seem to do any check about whether the source of the received incremental is the same as the previous one.

With my 3 VMs I just tested this simple scenario:

- create snapshot1 on VM1
- replicate snapshot1 to VM2 and VM3
- create a new snapshot2 on VM3
- do an incremental replication snapshot1 -> snapshot2 from VM3 to VM2 : command succeeds!
 
Top