Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncoid: bookmarks not created when latest snapshot is used #797

Open
pavhofman opened this issue Feb 3, 2023 · 0 comments
Open

Syncoid: bookmarks not created when latest snapshot is used #797

pavhofman opened this issue Feb 3, 2023 · 0 comments

Comments

@pavhofman
Copy link

Scenario: source gets regularly updated and each update is marked with a new snapshot. The previous snapshot on the source is destroyed afterwards.

syncoid creates the first bookmark on the source, but no more bookmarks afterwards. As a result zfs keeps sending increasingly more data each run as the target gets rolled-back to the target snapshot corresponding to the source bookmark which gets progressively older. IMO it should use a bookmark corresponding to the latest synchronized snapshot instead.

I tracked the problem to this check

sanoid/syncoid

Lines 769 to 772 in ef601eb

if ($matchingsnap eq $newsyncsnap) {
# edge case: bookmark replication used the latest snapshot
return 0;
}

which returns from the syncdataset method before the code creating the bookmarks

sanoid/syncoid

Line 814 in ef601eb

if (defined $args{'no-sync-snap'}) {
gets called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant