-
-
Notifications
You must be signed in to change notification settings - Fork 62
-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
If there are no snapshots of a zvol, 'ignore-replicated' is not honoured. #93
Comments
|
As expected, when the bootstrap had completed, it skipped it correctly
And this is the output of
|
After poking through the code, this is caused by
|
You expected it to look at the received property, however thats not always a reliable indication that something is part of active replication. (Since it could be a backup that was restored for example) zfs-autobackup is only looking at the bytes written since the last snapshot to determine if something is part of active replication. In your case there doesnt seem to be any active replication since there are no snapshots? So you could choose to disable those datasets via the autobackup:.. property, or you should create one manual snapshot for those datasets. (with a different name than zfs-autobackup uses as snapshot name) Would that solve your problem in a acceptable way? |
It was the FIRST snapshot, as it was bootstrapping.
Yes, that is ALSO something that should not be replicated, if I say |
Would you accept a pull request of |
This just bit me AGAIN, even after replication. |
I can't seem to reopen this ticket, so I'll create a new one. |
If another zfs_autobackup session is running, there will be changes on zvols that are replicated. This means that it is possible for a pair of servers running replication between themselves to start backing up the backups. Turning on --exclude-received when backups are running between an a <--> b pair of servers means that the vols that are received will never be accidentally seleted.
I noticed this when bootstrapping replication between two machines.
In this example, store1 is currently in the process of replicating /store2/vol3 from store2 into /store1/backups/store2/vol3, and the 'Ignoring, already replicated' is not being triggered.
When running this on store2, it thinks that the backup vol that is in the process of being received needs to be tagged.
The volume IS correctly marked as
received
, but my guess is that something is bailing out early saying 'This must be replicated' as there are no snapshots visible at the time?The text was updated successfully, but these errors were encountered: