-
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
autosnap = no is not respected #952
Comments
run sanoid with --debug and post the output pls. |
Hi there, thank you for responding. I have just run By the way, in the debug output I can see an interesting setting:
Would it not be expected to see
|
you also have the following in the debug output:
can you post your full sanoid config? Also no snapshots are taken in the provided debug output. Please also post a debug run from the timer where snapshots are taken wrongfully. |
I did not notice that duplicated 'autosnap'. What I have done now is I looked through the configuration and I left just what you see above. After that, I no longer see this However, in the debug output I still see the following:
Actually, although There seems to be two issues, then. One is probably related to duplicated I have now tried making once more a duplicate setting in [template_backup]. Lo and behold, immediately I started getting snapshots in the data set using this template! |
please post your original full sanoid config. This ways I should be able to reproduce the parse stuff and probably fix them. |
I have attached the problematic configuration. Also note that even after I resolved the problem by removing a duplicate |
Yes it was because of the invalid config (duplicate key). In case of the template section it wasn't handled (discarding the duplicate keys and only using the first one) despite the warning message.
This is the expected behaviour because you used "recursive = zfs". The child datasets won't be snapshotted by sanoid but by the recursive call to zfs.
Only the first one is relevant and it's basically a configuration failure which wasn't probably handled despite the warning message. The second one is the proper behaviour.
I made a PR which fixes this cases of misconfiguration. |
Thank you, this is much appreciated. |
Hi there,
I have the configuration listed below and the data set using the
production
template works as expected. However, the data set based on thebackup
template also gets automatic snapshots. I tried a few times to wipe them out and runsanoid --cron
. In this case, no snapshots were created, but when sanoid is run automatically through the timer/service, I always get automatic snapshots where they should not be taken. I wonder what may be wrong.The text was updated successfully, but these errors were encountered: