I have two large ZFS extents on different hosts. They have active filesystems which I have kept in reasonable sync via rsync/ssh. This is hugely inefficient.
I beleive if I was "starting from scratch" I could do this via
But I would prefer not to "wipe" the state and start again: I'd like to do some approach which kept my investment in copied data, and established a synchronized state from now onward.
Is this actually possible? or, am I doomed to wiping one, and restarting the copy process to carry forward via
BTW, there is a confusion in my mind about how you do this: It looks like incremental ZFS snapshots would be best, but some statements in the FreeBSD ZFS guide say "you need an empty FS to unpack into" which obviously cannot apply to incremental update. And, you want to delete snapshots periodically which on receiver would mean you didn't have a basis to apply ZFS receive increments to, if you don't stay in some lockstep. So I suspect I need to stick to some regime of sending state x, and keeping snapshot state x-1 and only deleting state x-2 x-3 ... ever.
I beleive if I was "starting from scratch" I could do this via
zfs send/receive
pipes (probably using mbuffer(1)) far more effectively: I tried it on another host and the speed difference was impressive.But I would prefer not to "wipe" the state and start again: I'd like to do some approach which kept my investment in copied data, and established a synchronized state from now onward.
Is this actually possible? or, am I doomed to wiping one, and restarting the copy process to carry forward via
zfs send/receive
?BTW, there is a confusion in my mind about how you do this: It looks like incremental ZFS snapshots would be best, but some statements in the FreeBSD ZFS guide say "you need an empty FS to unpack into" which obviously cannot apply to incremental update. And, you want to delete snapshots periodically which on receiver would mean you didn't have a basis to apply ZFS receive increments to, if you don't stay in some lockstep. So I suspect I need to stick to some regime of sending state x, and keeping snapshot state x-1 and only deleting state x-2 x-3 ... ever.