Richard Durso
Explorer
- Joined
- Jan 30, 2014
- Messages
- 70
I have TrueNAS-12.0-U2 doing a pull replication from a Linux system with snapshots created by Sanoid. This is working fine. TrueNAS filters snapshots by specified schema names such as autosnap_%Y-%m-%d_%H:%M:%S_monthly.
I'm having a problem with TrueNAS rejecting the snapshot based on creation time even though the snapshot name matches the schema name filter. This is the alert:
This happens due to a 1 second difference between snapshot name and creation time:
I have to rename all the snapshots that have this problem to be one second sooner...
As soon as I do that, the replication alert clears:
The underlying ZFS send/rec'v wouldn't care about that name difference. TrueNAS / zettarepl seem to be introducing this.
I'm having a problem with TrueNAS rejecting the snapshot based on creation time even though the snapshot name matches the schema name filter. This is the alert:
Code:
* Replication "tank/docker_projects -> main/docker/docker_backups" failed: zettarepl: zfs send PID is 852589 warning: cannot send 'tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly': not an earlier snapshot from the same fs Replication cannot continue because existing snapshot autosnap_2021-03-01_00:00:01_hourly is newer than 'tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly', but has an older date in the snapshot name. To resolve the error, rename 'tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly' with a date that is older than autosnap_2021-03-01_00:00:01_hourly or delete snapshot 'tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly' from both the source and destination..
This happens due to a 1 second difference between snapshot name and creation time:
Code:
$ zfs get creation tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly NAME PROPERTY VALUE SOURCE tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly creation Mon Mar 1 0:00 2021
I have to rename all the snapshots that have this problem to be one second sooner...
Code:
sudo zfs rename tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly tank/docker_projects/certbot@autosnap_2021-03-01_00:00:00_monthly # Verified name matches creation time. $ zfs get creation tank/docker_projects/certbot@autosnap_2021-03-01_00:00:00_monthly NAME PROPERTY VALUE SOURCE tank/docker_projects/certbot@autosnap_2021-03-01_00:00:00_monthly creation Mon Mar 1 0:00 2021 -
As soon as I do that, the replication alert clears:
Code:
The following alert has been cleared: * Replication "tank/docker_projects -> main/docker/docker_backups" failed: zettarepl: zfs send PID is 852589 warning: cannot send 'tank/docker_projects/certbot@autosnap_2021-03-01_00:00:01_monthly': not an earlier snapshot from the same fs Replication cannot continue because existing snapshot....
The underlying ZFS send/rec'v wouldn't care about that name difference. TrueNAS / zettarepl seem to be introducing this.