-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fails to recv with ZoL version 6.5.4 when dataset doesn't already exist. #2
Comments
After working with the system some more I think it's the zfs version on the other machine (kvm1) causing it and not the version on the backup host. The backup machine is on 6.5.8. I have a third with 6.5.8 that doesn't give the same error as when trying to backup the datasets from the 6.5.4 one. |
ok then i'll close this one for now :) |
@psy0rz I run into the same error and thought maybe you can help me here instead of opening a new issue. I'm running on TrueNAS Scale 22.12.4
I understand that it tries to find existing snapshots on the target, but why does the script fail if it obviously does not exist yet?
|
Which version of autobackup? |
wow that was fast :-) zfs-autobackup v3.3-beta - (c)2022 E.H.Eefting ([email protected]) I should also note that I'm using it with these instructions, as there is no pip on TrueNAS to install it: #83 (comment) |
Yeah, master is currently broken because work in progress. Try v3.2.2, or try commit a62e793 , which doesnt have the work in progress stuff. (and it has a bunch of new cool stuff which might help you) Edwin |
I have tried with the commit you mentioned and the backup now works! Thanks a lot for your help. I should have realized that checking out master might not be a stable release 🤦🏻♂️ I will try to write a script that takes care of that and mention it in the other Issue. One more (noob) question I have if I may: If I run zfs-autobackup I see the snapshots on the target and zfs list shows the datasets. I cannot however cd into them and the TrueNAS GUI shows an error when clicking on the dataset ".ZFSException: cannot get used/quota for : dataset is busy". I read on the TrueNAS forum where someone had that problem with a read-only dataset - which would make sense as the backed up snapshots are read only. |
Yes, after initial sync zfs-autobackup v3.2 does not mount the datasets. Use zfs mount -a for that. However this will be fixed if you have 3.3 beta. |
#zfs_autobackup --ssh-source kvm1 --clear-mountpoint kvm1 data --debug --strip-path 1
I'm able to get around the error if I first manually run the same command without the switches "-p -v" & "-u -v"
i.e.
#ssh kvm1 zfs send datastore/Spice_C@kvm1-20170426151419 | zfs recv data/Spice_C
Once the datasets marked with autobackup:kvm1=true exist on both zfs hosts the program completes without error.
I don't know if it's something specific with my configuration.
I'm using --strip-path 1 because the zpool names are different and it failed to create data/datastore or data/datastore/Spice_C without that option
The text was updated successfully, but these errors were encountered: