Hi All,
I'm using version 9.2.1.9 on 3 FreeNAS machines.
2 of them are in-house on different floors, with replication of 2 datasets working great.
When I added the 3rd machine, which intended to be moved eventually to a DR site, I've added another 2 replication jobs for the same datasets to the new machine.
I quickly realized that because of the way FreeNAS marks the snapshost (-,NEW,LATEST) a replication to 2 targets is basically impossible.
My current work around is basically have the replication jobs for the 3rd machine disabled, and every couple of days I:
1. Disable the replication jobs to the 2nd machine
2. Use the CLI to find the last snapshot to the 3rd machine
3. change the freenas:state of that snapshots to LATEST
4. change all following snapshots freenas:state to NEW
5. enable the replication jobs for the 3rd machine
6. wait for the replication to finish successfully
7. disable the replication jobs for the 3rd machine
8. re-enable the replication jobs to the 2nd machine
Is there anyway to automate this?? with cron job maybe? or even just a script that I'll run manually?
Is there a way to disable / enable replication jobs (of the GUI) via CLI?
Thanks!
I'm using version 9.2.1.9 on 3 FreeNAS machines.
2 of them are in-house on different floors, with replication of 2 datasets working great.
When I added the 3rd machine, which intended to be moved eventually to a DR site, I've added another 2 replication jobs for the same datasets to the new machine.
I quickly realized that because of the way FreeNAS marks the snapshost (-,NEW,LATEST) a replication to 2 targets is basically impossible.
My current work around is basically have the replication jobs for the 3rd machine disabled, and every couple of days I:
1. Disable the replication jobs to the 2nd machine
2. Use the CLI to find the last snapshot to the 3rd machine
3. change the freenas:state of that snapshots to LATEST
4. change all following snapshots freenas:state to NEW
5. enable the replication jobs for the 3rd machine
6. wait for the replication to finish successfully
7. disable the replication jobs for the 3rd machine
8. re-enable the replication jobs to the 2nd machine
Is there anyway to automate this?? with cron job maybe? or even just a script that I'll run manually?
Is there a way to disable / enable replication jobs (of the GUI) via CLI?
Thanks!
Last edited: