zfs-autobackup as a DR tool? #212
rsysadmin-com
started this conversation in
General
Replies: 1 comment 4 replies
-
if you want to be able to "reverse" the dataflow, make sure you use the same backupname everywhere. so dont use prodpool1 and prodpool2 as a name. just make it prodpool |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
First things first: @psy0rz - thanks for such a useful tool.
I landed on zfs_autobackup after testing other ZFS-related tools to take snapshots and, so far, it has been the one that ticks most the boxes, but not all. Perhaps, and most likely, due to my lack of knowledge...
So, I have created the following instances for a PoC:
The backup server steers how snapshots are taken and distributed, and the workflow was easy to implement:
job1: zfs-node1 <--pull-- zfs-backup
job2: zfs-backup <--pull-- zfs-node2
This works relatively fine when zfs-node1 is the primary node and snapshots flow from zfs-node1 to zfs-node2, via zfs-backup.
The zero-trust option described in the documentation to directly pull-push is nice but nothing remains on the backup server, so it's a no-go.
Now, when I reverse the polarity, a.k.a. zfs-node2 becomes primary and zfs-node1 becomes secondary, the backup server has some issues when taking snapshots:
With this, snapshots are created on zfs-node2 but are not pulled by zfs-backup.
Once I purge the existing snapshots on the targets (both zfs-backup and zfs-node1, in this case), everything works as expected.
Now... the idea behind all this setup is to have a way to implement a mechanism to have PRODPOOL/dataset from the primary node, no matter which one it is, synchronized to the max with the secondary one, so when a DR happens, I don't need to wait forever for ZFS to transfer terabytes of information, thus making the DR very tedious and also creating an economical disaster...
So, some questions for you, zfs-autobackup gurus out there:
TIA!
Beta Was this translation helpful? Give feedback.
All reactions