Could anyone be bothered to build a webmin module for sanoid/syncoid? I wonder if someone already has a working plugin.
I’ll probably build a basic module to allow adding snapshot blocks for datasets with Sanoid and also replication sets for Syncoid. Seems fairly straightforward as it’s basically cron and conf files for sanoid and simple cron for syncoid.
Looking at Syncoid there seems to not be a way to monitor failed status? Or am I missing something? I’d like to be able to know if a job completed, and it it failed, on what datasets it failed, if any.
It’s more reliable to simply see when the most recent snapshot available was taken on the target.
Looking at the code it’s so simple there might not even be a point for a plug-in. It’s a basic config file and a cron job. That’s it.
So, just to clarify, when syncoid syncs be default it will create its own snap, use the latest matching one as a base, then replicate using -I? Does it require a prior Syncoid snap? Or will it use the last matching no matter what it is?
Then for --no-sync-snap it will take the latest snap from the source, then take the latest matching snap from both and replicate.
Am I on track so far?
Basically. By default, syncoid will take its own snapshot, and remove old syncoid snapshots in order to make certain that replication can work in the way that newbies who don’t really understand replication would expect, eg, rsync to work.
But syncoid doesn’t NEED that, since it will work with any and all snapshots available. If you’re already maintaining your own set of snapshots (including but not limited to using sanoid to orchestrate that for you), it is frequently better to omit the syncoid automatic snapshot and just use the existing snapshots by themselves.
The module is actually looking pretty good. I’ve got some logging, status and basic run health configured.
This is it. It’s as simple as I could get it, and it’s running on two of my systems already.
Is it normal that a syncoid run of about 4TB (incremental - every 24 hours) will take a full hour? My old script was able to consistently do the exact same replication run in 10-15 minutes. I’m really curious what would be taking so awful long…
Update on this:
not sure why but all backups for the last week or so are around 5-15 minutes.
I’m not sure why the one took an hour. Maybe bad network.
The module works great so far.