-
Notifications
You must be signed in to change notification settings - Fork 310
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: Better handle replication when the --no-rollback
option is specified and bookmarks exist on the source
#602
Comments
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Mar 14, 2021
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
bump |
I just ran into the need for this too. Is there something someone can do to help move it along? |
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Apr 23, 2023
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
May 17, 2023
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
May 17, 2023
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
May 17, 2023
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Jul 27, 2023
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Apr 20, 2024
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Apr 20, 2024
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Apr 20, 2024
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Apr 21, 2024
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
0xFelix
added a commit
to 0xFelix/sanoid
that referenced
this issue
Apr 21, 2024
This commit changes syncoid's behavior so it is always looking for a matching snapshot and a matching bookmark. If the bookmark was created after the snapshot it is used instead. This allows replication when the latest snapshot replicated was deleted on the source, a common snapshot was found but rollback on the target is not allowed. The matching bookmark is used instead for replication. This fixes jimsalterjrs#602
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem:
Infrequently backups with the
--no-rollback
option.When the latest snapshot replicated is a daily snapshot it will probably not exist anymore on the
source
when doing the next replication.So syncoid finds a common snapshot, but can't use it successfully as a base for replication because it is not the latest one on the
target
and it is not allowed to rollback the target.(The error is
cannot receive incremental stream: destination … has been modified since most recent snapshot
)I added the
--create-bookmark
option, so syncoid creates a bookmark for the latest replicated snapshot.But syncoid only checks for bookmarks if it can't find any common snapshots between
source
andtarget
. (which is not the case)What is possible with the
--no-rollback
option:A
send -i
from the bookmark on the source corresponding to the latest snapshot on the target.The snapshot to send can be either the latest snapshot on the target (so no intermediate snapshots are transferred)
or the oldest snapshot which is newer than the bookmark (In this case syncoid could afterward continue with a normal
send -I
from the new snapshot, which would also preserve the intermediate snapshots).Alternative solutions:
Below is a bash script attached for reproducing the problem.
It's probably a bit more verbose than necessary.
Click to expand
The text was updated successfully, but these errors were encountered: