bellhyve / zelta

ZFS tools used for data migration and backup management.
Other
38 stars 6 forks source link

zelta match doesn't pick up edge cases and causes errors #34

Closed bellhyve closed 7 months ago

bellhyve commented 8 months ago

These STATUS and DESCRIPTIONS need to be fixed and then correctly handled in zelta-replicate.awk.

Examples:

SRC: [none] TGT: ds [no snap] Output: STATUS=NOSNAP, SUMAMRY="no source snapshots"

SRC: a b@ TGT: [none] Replication: Fails without snap first because there's no parent. We should detect that.

SRC: @a @c TGT: @a @b Output: STATUS=BEHIND, SUMMARY=syncable Replication: awk error since it's not actually syncable, we should report we need a rollback or find @b%@c.

bellhyve commented 8 months ago

Looks like the errors only trigger in zelta policy. They are handled reasonably well in zelta replicate.

bellhyve commented 7 months ago

Fixed, dropped status in favor of human readable INFO